Hey,

yeah I know the 'list' option for find but this won't fit here because
I can't get cake to search only for the countries where an active shop
to exists. the problem is that I need to go "back" two models to make
my conditions work (Shop.active = 1), but Cake always tells me that
this column doesn't exist. I thought it couldn't be so difficult to
make a find-call over 3 models which are related and set up conditions
for them, like

'conditions' => array(
   'Shop.active' => 1,
   'Location.name' => sth,
   'Country.name' => sth
),

Usually I would use my condition for the "Last" table in which I'm
looking for my date (e.g. Country) but I need to find every Country to
the existing shops. This is really confusing me...



On 1 Jun., 21:49, Stu <[email protected]> wrote:
> I'm pretty sure you're looking for -> find('list', array)
>
> http://book.cakephp.org/view/810/find-list
>
> Hope it helps,
>
> Good luck
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to