Working with objects - Dealing with relations - Retrieving related records.php 335 Bytes
Newer Older
hansbrix's avatar
hansbrix committed
1 2
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. 
3

hansbrix's avatar
hansbrix committed
4 5 6 7 8 9 10
<code type="php">
print $user->Email['address'];

print $user->Phonenumber[0]->phonenumber;

print $user->Group[0]->name;
</code>