On Mon, Jun 22, 2009 at 12:44 PM, abest11<abhishe...@gmail.com> wrote:
>
> I understand that I can specify conditions when I do a find call.
> But I want it to filter the associated model automatically.
>
> If I am misunderstanding, can you explain what the use of the
> 'conditions' key is in the hasMany association as described here
> http://book.cakephp.org/view/82/hasMany

It's just what you thought it was. That's new to me. It's not
something that makes any sense to me because the status of a Comment
or the date that a Job was created should not, IMHO, be the basis for
filtering an association between models. Personally, I think that,
while it may be a shortcut, it's wrong to filter like that in the
association. I guess the Cake devs feel otherwise.

So, ignore my other comment, if you like.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to