Two entities, one with a smaller subset of columns, from same table? #10742
Unanswered
delboy1978uk
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project where the database wasn't initially generated by doctrine, sadly we're using db dumps and you know where that leads, so I'm trying to remedy that.
However it turns out we have two different "Product" entities, both pointing to the same table, so the schema generate tool bails out saying the table already exists.
It turns out the database table has a LOT of columns, which the first entity has all of defined, but the second entity only has some of these columns (ones relevant for the API we have).
I initially considered the possibility of mapped super classes, but these are not different entities!
Is this something that is actually possible with doctrine orm?
Beta Was this translation helpful? Give feedback.
All reactions