I have the same problem too.. Then how to use this in pagination?
Okto.Silaban.Net On Tue, Sep 9, 2008 at 6:48 PM, rob30 <[EMAIL PROTECTED]> wrote: > > $this->Conference->bindModel(array( > 'hasOne' => array( > 'ConferencesSphere', > 'FilterSphere' => array( > 'className' => 'Sphere', > 'foreignKey' => false, > 'conditions' => array('FilterSphere.id = > ConferencesSphere.sphere_id') > )))); > $this->Conference->bindModel(array( > 'hasOne' => array( > 'ConferencesInstitution', > 'FilterInstitution' => array( > 'className' => 'Institution', > 'foreignKey' => false, > 'conditions' => array('FilterInstitution.id = > ConferencesInstitution.institution_id') > )))); > > after such temp bind we can find conferences filtered by value of > spheres and institutions fields eg > $this->Conference->find('all', array('conditions' => > array('FilterSphere.name' => 'AJAX', 'FilterInstitution.name' => > 'something'), 'recursive' => 0, 'fields' => array('DISTINCT > Conference.id', 'Conference.*', 'FilterSphere.name'))); > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---