Polymorphic Associations in Doctrine?
-
24-09-2019 - |
Question
Is there an equivalent to Rails-like polymorphic associations in Doctrine? I'm trying to do something similar to: http://railscasts.com/episodes/154-polymorphic-association
Solution
Yes, sort of. Inheritance. I am currently using concrete and column aggregation on a project at work, but it's not as powerful as polymorphic associations.
More info here.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow