How is the best way to add owner_id to this association
exp. function addAssoc($id,$assoc_name,$assoc_id,$owner_id)
[cpde]
function addAssoc($id,$assoc_name,$assoc_id)
{
$data=$this->_auxAssoc($id,$assoc_name);
if (!is_array($assoc_id)) $assoc_id=array($assoc_id);
$data[$assoc_name][$assoc_name]=am($data[$assoc_name][$assoc_name],$assoc_id);
return $this->save($data);
}
[code]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---