2006-07-24 01:08:06 +04:00
|
|
|
You can retrieve related records by the very same Doctrine_Record methods you've already propably used for accessing record properties.
|
|
|
|
When accessing related record you just simply use the class names.
|
2007-04-13 00:52:30 +04:00
|
|
|
|
|
|
|
<code type="php">
|
|
|
|
print $user->Email['address'];
|
|
|
|
|
|
|
|
print $user->Phonenumber[0]->phonenumber;
|
|
|
|
|
|
|
|
print $user->Group[0]->name;
|
|
|
|
</code>
|