I have two associated models - Newproduct hasMany Newproductimage - Ideally, I need to do a find that only returns the Newproductimage where 'newproductimage.thumbnail' is set to 1
Doing: $conditions = array('Newproductimage.thumbnail' => 1) $this->Newproduct->find('all', array('conditions' => $conditions)) searches through Newproduct for thumbnail, which does not exist. I know that I can rebuild the array with the returned results, but it seems like cake would handle this for me. Thanks for any tips. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---