Hello Brian,
Can you explain more? What is your context?
Because conditions array is normally for SQL conditions (e.g. :
Post.id 5 or Post.id 10), not for fields...
BR
Avairet
On 10 jan, 02:32, blange [EMAIL PROTECTED] wrote:
$conditions = array(
'Post.id' =
There's a 'magic marker' that tells cake not to interfere with
conditions, and it's -! (hyphen - bang)
So this would work:
$conditions = array(
'Post.id' = '-!Post.thread_id')
Of course, cake won't quote your field, so it would be better practice
to put
$conditions =
Thanks that did the trick!
On Jan 10, 5:57 am, grigri [EMAIL PROTECTED] wrote:
There's a 'magic marker' that tells cake not to interfere with
conditions, and it's -! (hyphen - bang)
So this would work:
$conditions = array(
'Post.id' = '-!Post.thread_id')
Of
$conditions = array(
'Post.id' = 'Post.thread_id',
How to I make cake interpret Post.thread_id as the field instead of a
string.
Thanks.
-Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google