On Oct 27, 2006, at 8:57 AM, Gonçalo Marrafa wrote:
> I would like to know how(if) i can impose conditions to the tuples of > Foo based on tuples of Bar. For example, can i findAll() only the > tuples of > Foo that have an associated Bar tuple with id = 1 ? > > Can Cake do this for me or do i have to hand-write the query? This may be an oversimplification, but HABTM association arrays have a 'conditions' key. You could use that to narrow down which objects you want included in joins. Check out the manual for the syntax. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
