1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/manual/docs/Object relational mapping - Relations - Inheritance - One table one class.php
2007-02-23 23:02:59 +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 />