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' those three 'AND'-arrays
into another, unindexed, array:
'OR'=>array(
array('AND'=>array(
// some conditions
)),
array('AND'=>array(
// some other conditions
)),
array('AND'=>array(
// even more conditions
))
)
I actually don't know if that's the most beautiful solution, since
those 'wrapper'-arrays look kind of a thorn in my side. So if anybody
would come up with a better solution, I'd totally go for it ;-). But
principally it works like this.
Once again thank you, have a nice day,
Benni.
Btw. @Xaver Mathews: I wanted the results where either of the three
condition-blocks (consisting of 3-4 statements which all had to be
true) are true.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---