2006-07-23 21:08:06 +00:00
|
|
|
You can update the related records by calling save for each related object / collection individually or by calling
|
2006-08-21 22:55:11 +00:00
|
|
|
save on the object that owns the other objects. You can also call Doctrine_Connection::flush which saves all pending objects.
|
2007-04-12 20:52:30 +00:00
|
|
|
|
|
|
|
<code type="php">
|
|
|
|
$user->Email['address'] = 'koskenkorva@drinkmore.info';
|
|
|
|
|
|
|
|
$user->Phonenumber[0]->phonenumber = '123123';
|
|
|
|
|
|
|
|
$user->save();
|
|
|
|
|
|
|
|
// saves the email and phonenumber
|
|
|
|
</code>
|