Nevery used HAMBT but u can try something like http://www.nabble.com/Conditions-on-2-models-with-the-relationship-hasMany-td24387079.html
On Mon, Jul 27, 2009 at 6:22 PM, iFeghali <[email protected]> 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 <[email protected]> wrote: > > try: > > > > $this->paginate['conditions'] = array( > > 'OR' => array ( > > 'User.name IS' => 'NULL', > > 'Recipe.id IS' => ' NULL' > > ) > > ); > > > > -- Regards, Jaydeep Dave Mobile: +919898456445 Email: [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
