mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Single Table Inheritance - issue #7282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fico7489 on GitHub (Dec 19, 2023).
This is example from documentation:
https://www.doctrine-project.org/projects/doctrine-orm/en/2.17/reference/inheritance-mapping.html#design-time-considerations
Is it possible to have both relations with inversedBy like this:
What is suggestions for achieve this?
@greg0ire commented on GitHub (Dec 19, 2023):
I'm confused… the page you linked does not mention
$usersat all, does it? 🤔@fico7489 commented on GitHub (Dec 19, 2023):
it is extended example based on documentation example
@yard-mschwartz commented on GitHub (Dec 21, 2023):
Your example seems bugged to me
Employeeneedprivate Collection $users;whenPerson(its parent) already hasprivate Collection $users;?mappedBy: 'employees'inPerson, andmappedBy: 'persons'inEmployee?@fico7489 commented on GitHub (Dec 21, 2023):
@yard-mschwartz
thanks for response
yes, you are right it was buggy, I now replaced mappedBy.
yes, Person (its parent) already has private Collection $users; but that relation is not working inside Employee because
mappedBy is persons, not employees
I am looking for some king of mechanism to change mappedBy for that relation inside Employee.