It can't work from the Shoe model as Shoe hasMany Size so it will run
one find for Shoe and another for Size. However with your associations
you could run $this->Shoe->Size-
>find('all',array('conditions'=>array('Size.size'=>10))); and it would
pull all the data you want.But you need to back up as the association really should be HABTM due to the fact there are many sizes that belong to many shoes. You should not be entering multiples of the same shoe size, you should have all possible sizes in your sizes table and when entering a shoe you can use Cake's automagic to create a list of checkboxes or multiple select and store the related values in a join table. I recommend you read the following about HABTM: http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM http://teknoid.wordpress.com/?s=habtm HTH Paul. 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
