Mapping object relations - Inheritance - One table one class.php 271 Bytes
Newer Older
doctrine's avatar
doctrine committed
1 2 3 4 5
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 />