Find conditions with hasMany model
问题 I have 4 model: Item------hasMany---->Detail Item------hasMany---->Favourite Item------hasMany---->Category How can I find all Item that has Favourite.member_id = '8' and Category.item_category_id = '1' Here is my Item model relation: public $hasMany = array( 'Detail' => array( 'className' => 'Detail', 'foreignKey' => 'item_id', 'dependent' => true, 'conditions' => '', 'order' => 'created DESC', ), 'Category' => array( 'className' => 'Category', 'foreignKey' => 'item_id', 'dependent' => true,