Answer the question
In order to leave comments, you need to log in
How to form a model correctly?
Hello.
When classes are inherited, the properties of the ancestor are present in the child class.
If you create entities and migration through the terminal, then Symphony does not take into account data redundancy and creates a separate table for the child (which contains the same fields as the ancestor).
It seems to me that there should be one extended table that will contain both ancestors and descendants.
Please tell me how to do it right. I am a beginner, I do not understand where to dig.
Answer the question
In order to leave comments, you need to log in
https://www.doctrine-project.org/projects/doctrine...
UPD: entities are not models. Please describe the task in more detail. Maybe the above link is not for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question