Hi teknoid,
this helped very much. But only for my static example - it's the [0]
there that does the trick:
"
$this->data['Adressenchangelog'][0] = array('adresse_id' => $this-
>data['Adresse']['id'], 'user_realname' => 'jaja');
if($this->Adresse->saveAll($this->data, array('validate'=>'first')))
{
"
But if I try this within the beforeSave() the saveAll()- and the
save()-functions do not pick up the modified $this->data...
Even in this simple example it is not working:
function beforeSave()
{
$this->data['Adressenchangelog'][0] = array('adresse_id' => $this-
>data['Adresse']['id'], 'user_realname' => 'test');
return true;
}
Any advice?
thanks
klaus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---