1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/docs/Working with objects - Dealing with relations - Retrieving related records.php

11 lines
344 B
PHP

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.
<code type="php">
print $user->Email['address'];
print $user->Phonenumber[0]->phonenumber;
print $user->Group[0]->name;
</code>