1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/codes/Mapping object relations - Dealing with relations - Creating related records.php

15 lines
265 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?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();
?>