1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/codes/Working with objects - Dealing with relations - Creating related records.php
2007-02-23 23:04:15 +00:00

15 lines
265 B
PHP

<?php
// NOTE: related record have always the first letter in uppercase
$email = $user->Email;
$email->address = "jackdaniels@drinkmore.info";
$user->save();
// alternative:
$user->Email->address = "jackdaniels@drinkmore.info";
$user->save();
?>