Who said it doesn't accept arrays of conditions?

http://manual.cakephp.org/chapter/models

-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 Adrian Godong
Enviado el: Viernes, 08 de Diciembre de 2006 12:44 p.m.
Para: [email protected]
Asunto: RE: findall custom query


Well, the first param for the findAll is the "SQL condition". CakePHP is not
smart enough (yet) to understand arrays of conditions, it just accepts a
string and place it after the WHERE clause in the SQL statement.

To answer your question, change the array into it's SQL language (i.e.
global=1 AND user_id='$id');

HTH


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