I saw something in an earlier post and did not want to hi-jack the thread
so.
Cricket posted a snip:
$this->find(
'count',
array(
'joins' => array(
array(
'alias' => 'Post',
'table' => 'posts',
'type' => 'left'
)
),
'conditions' => array(
'MetaTag.id' => $this->id()
)
)
);
I am wondering about 'MetaTag.id' => $this->id() $this->id
Will get be the id get the current record id But what if you were using
another field as identifier?.
Can you use $this->any_field from the table? If field was current_day could
you use $this->currentDay or is it $this->current_day?
Just curious.
Thanks
Dave
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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