Have you looked in the model chapter of the manual http://manual.cakephp.org/chapter/6  you are looking for the section on adding conditions.  For example one thing that I have as a condition is flActive=true

Sam D

On 6/22/06, Matt <[EMAIL PROTECTED]> wrote:

Hello everyone,

Must say I am very impressed with CakePHP but I'm having trouble
getting my head around associations, particularly hasAndBelongsToMany.

The scenario is this, I've got two tables Users and Teams linked by a
join table. When I return a team using Team->find sometimes I only want
to return a subset of Users - is it possible to set conditions on the
associated models?

Thanks
Matt



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

Reply via email to