07.04 php saved
francky06l
Tags add more
 
Note
francky06l did not leave a note
  1. $clients = $this->Client->find('all', array(
  2.     'contain'=>array(
  3.         'Inhabitation'=>array(
  4.             'conditions'=>array(
  5.                 'Inhabitation.from <='=>date('Y-m-d'),
  6.                 'Inhabitation.to >='=>date('Y-m-d'),
  7.                 ),
  8.                         'group' => 'Client.id'
  9.             ),
  10.         ),
  11.     ));
Parsed in 0.025 seconds, using GeSHi 1.0.7.14

Modify this Paste