Re: Troubles doing a complex find

2008-10-15 Thread xavierunited
Ok thanks and have a nice day! On 10/15/2008, Benni Graf <[EMAIL PROTECTED]> wrote: > > Hi there! > > Thank you very much everybody, that actually should've jumped my eye > by itself, I'm sorry for bothering you ;-)... > > For sure those 'AND' as array-indexes overwrite each other, so only > the

Re: Troubles doing a complex find

2008-10-15 Thread Benni Graf
Hi there! Thank you very much everybody, that actually should've jumped my eye by itself, I'm sorry for bothering you ;-)... For sure those 'AND' as array-indexes overwrite each other, so only the last statement made it to the query-generating magic. For the records: The solution is to 'wrap' t

Re: Troubles doing a complex find

2008-10-14 Thread xavierunited
I am sorry but what is the point of this post? What is the problem? On 10/14/2008, ORCC <[EMAIL PROTECTED]> wrote: > > AND logical operator is asociative, hence: > > 'OR' => Array ( >'AND' => Array ( /*put all conditions here*/) > ) > > is equivalent, and here

Re: Troubles doing a complex find

2008-10-14 Thread ORCC
AND logical operator is asociative, hence: 'OR' => Array ( 'AND' => Array ( /*put all conditions here*/) ) is equivalent, and here you don't rewrite the Array index. --~--~-~--~~~---~--~~ You received this message because you

Re: Troubles doing a complex find

2008-10-14 Thread the_woodsman
It looks to me like it's nothing to do with Cake - see your array: 'OR'=>array( 'AND'=>array( // some conditions // don't appear in the query ), 'AND'=>array( // some other conditions // don't appear in the query ), 'AND'=>array( // more conditions - only