Hi all,

I have the following model objects:

MailList hasManyAndBelongsTo Email

The Email object has an "active" boolean attribute. In the page that
shows the details of a MailList and wanted to list only the active
Emails of that MailList.

If I use MailList::read(null, $id), then I get all Emails in the
resulting query. How is a good way to solve this? Do I need to write a
specific SQL query and use query() to get only the active Emails from
a MailList?? Or is there a MailList->someMethod() that I can use?

Tks
Felipe

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