Model Discriminator
#51521
Replies: 2 comments 2 replies
-
I think this is doable as it is now without attributes.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
It is ofcourse doable by yourself, or use a package. Google came up with https://github.com/tighten/parental |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add the ability to store several models in one table, distinguishing them by attribute, which will be stored as an auxiliary field (for example, attribute 'type'). The idea has already been implemented in the Doctrine ORM for the symfony (https://www.doctrine-project.org/projects/doctrine-orm/en/3.1/reference/inheritance-mapping.html#single-table-inheritance).
Beta Was this translation helpful? Give feedback.
All reactions