07.04 php saved
benni
Tags add more
containable  
Note
benni 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.             ),
  9.         ),
  10.     ));
Parsed in 0.022 seconds, using GeSHi 1.0.7.14

Modify this Paste