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 course, cake won't quote your field, so it would be better practice
> to put
>
> $conditions = array(
>                         'Post.id' => '-!`Post`.`thread_id`')
>
> (makes it more readable too)
>
> On Jan 10, 1:07 pm, avairet <[EMAIL PROTECTED]> wrote:
>
> > 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' => '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 Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to