1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/docs/Mapping object relations - Inheritance - One table one class.php

6 lines
271 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
In the following example we have three database tables called 'entity', 'user' and 'group'.
Users and groups are both entities.
The only thing we have to do is write 3 classes (Entity, Group and User) and make iterative
setTableDefinition method calls.
<br /><br />