I try to insert a new association between Users ans Applications.
That's the code:
$data=array('User'=>array('id'=>$userId),
'Application'=>array('Application'=>array('id'=>$applicationId)),
'id'=>null);
$this->User->save($data);
But this delete all previous association and then insert this one.
So how to insert a new association without deleting others one ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---