Hi,

i have a question concerning the pagination and unbinding
associations.
My Model has a bunch of hasMany and habtm Associations which i want to
unbind, because for this request I need only the hasOne UserProfile
Model which is already defined in the User Model.


I do this:

       $this->User->unbindModel( array('hasMany' =>
array('BandRequest', 'CellRequest', 'GigRequest', 'ImageUpload',
'MusicUpload', 'MusicianRequest', 'UsedRequest', 'Sender',
'Recipient'),
                                                              
'hasAndBelongsToMany'  => array('Band')
                                                                )
                                                  );
        $this->User->recursive = 2;
        $lists = $this->User->findAll();
        $this->set('lists', $this->paginate($lists));


It fails with an SQL error (Column: 'id' in where clause is
ambiguous) ...

Is there a possibility to get this working ?


Regards,
Alexander


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to