That seems like a bug - the array list of params for a field have been supported for quite some time in 1.2.x.x
What DBO do you use ? MySQL? -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie van de Kerkhof Sent: 26. september 2007 12:36 To: Cake PHP Subject: FindAll condition can not be an array? Hi, (v1.2, latest SVN version) I try to pass an array to the findAll function like this: $condition = array('id'=>array(2,5,6,9,12,45,78,43,76)); $this->Artist->findAll($condition); But the Query is written to the database is: SELECT * from Artist WHERE (2) AND (5) AND (6) AND (9) AND (12) AND (45) AND (78) AND (43) AND (76); What results in returning every row because everything is true. Is this a bug or is this not supported (yet?)? Thnx! - Charlie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
