I am reading the Doctrine documentation, but cannot find a way to implement the type of inheritance that I want to use.
I would like to set up the hierarchy as follows:
Node -> Something -> Something Else
With Node main parent.
I would like to store data that is common to everything in the Node table, for example, the date of creation, update, etc., and not store the same information in each table. Then the child classes will have different properties depending on their goals.
Doctrine's simple classification methods and methods do not seem to be able to create new tables for child classes, while a particular method creates a new table but copies all the parent properties.
Is there any way to achieve this?
Any advice is appreciated.
Thanks.
inheritance php doctrine
Dan
source share