1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/manual/docs/Mapping object relations - Inheritance - One table one class.php
2006-07-23 21:08:06 +00:00

6 lines
271 B
PHP

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 />