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