hey guys! i am having trouble figuring out how i can impose search conditions in my model pertaining to associated models.
Lets say i have a model Shoe and a model Size. Shoe(id,name,price,discount) hasMany Size(id, shoe_id, size, quantity). And Size belongsTo Shoe. What i want to do is this: $this->Shoe->find('all',array('conditions'=>array('Size.size'=>10))); in other words i want get all the shoe models who have this size. it does not work! can anybody point me in the right direction? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en