1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/docs/Mapping object relations - Inheritance - One table many classes.php

8 lines
388 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
When it comes to handling inheritance Doctrine is very smart.
In the following example we have one database table called 'entity'.
Users and groups are both entities and they share the same database table.
The only thing we have to make is 3 records (Entity, Group and User).
<br /><br />
Doctrine is smart enough to know that the inheritance type here is one-table-many-classes.