Monday, July 27, 2009

Re: Searching non existent related models

Nevery used HAMBT



On Mon, Jul 27, 2009 at 6:22 PM, iFeghali <igor.feghali@gmail.com> wrote:

Thank you Jaydeep. Now how do I do the same for a HABTM ? It is not
joined in the query by default.

On 27 jul, 05:25, Jaydeep Dave <jaydipd...@gmail.com> wrote:
> try:
>
> $this->paginate['conditions'] = array(
>      'OR' => array (
>          'User.name IS' => 'NULL',
>          'Recipe.id IS' => ' NULL'
>      )
>  );





--
Regards,

Jaydeep Dave
Mobile: +919898456445
Email: jaydipdave@yahoo.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: