$this->Category->find('all', array(
'conditions' => array(
'name LIKE' => '%'.$parent.'%',
'parent_id' => null
)
));
On Jun 6, 10:26 am, . <[EMAIL PROTECTED]> wrote:
> Hi
>
> I just switched from cake 1.2.6311 to cake 1.2.7125 (RC1)
>
> what is the new syntax for this command?
>
> $this->Category->findByName(array('name' =>'LIKE %'.$parent.'%',
> 'parent_id'=>null));
>
> I want to find all categories where the name is like %parent% and the
> parent_id is null
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---