hi all, i m facing some problem in find function. im fetching value fro find function.i have model.contian another model . Can i give conditions in contain in cakephp
is it possiblehi
hi all, i m facing some problem in find function. im fetching value fro find function.i have model.contian another model . Can i give conditions in contain in cakephp
is it possiblehi
isnt conditions in the format $this->ModelName->find('all',array('conditions'=>array('Table.name'=>1))); working for you?
$this->Post->find('all', array('contain' => array( 'Comment' => array( 'conditions' => array('Comment.author =' => "Daniel"), 'order' => 'Comment.created DESC' ) )));
You could always try the documentation first ;).