1
0
mirror of synced 2025-01-06 00:57:10 +03:00
doctrine2/manual/docs/Mapping object relations - Composites and aggregates.php

9 lines
621 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
Doctrine supports aggregates and composites. When binding composites you can use methods Doctrine_Table::ownsOne() and Doctrine_Table::ownsMany(). When binding
aggregates you can use methods Doctrine_Table::hasOne() and Doctrine_Table::hasMany().
<br \><br \>
In Doctrine if you bind an Email to a User using ownsOne or ownsMany methods, everytime User record calls save or delete the associated
Email record is also saved/deleted.
<br \><br \>
Then again if you bind an Email to a User using hasOne or hasMany methods, everytime User record calls save or delete the associated
Email record is NOT saved/deleted.