Try this:

$this->set('notes', $this->Note->findAll(array ('Notes.public' => 1,
'Users.user_id' => $id )));

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Viernes, 08 de Diciembre de 2006 12:26 p.m.
Para: Cake PHP
Asunto: findall custom query


Now I want to print out all notes that are flaged as public and are
from the user with the id "1".


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to