Re: specify field instead of string in conditions array

2008-01-10 Thread avairet
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' =

Re: specify field instead of string in conditions array

2008-01-10 Thread grigri
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 =

Re: specify field instead of string in conditions array

2008-01-10 Thread blange
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

specify field instead of string in conditions array

2008-01-09 Thread blange
$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