mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Missing contructor for AttributeOverride Mapping #6763
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 @adpeyre on GitHub (Jun 17, 2021).
Hi,
I think a constructor is missing for php8 attributes in Doctrine\ORM\Mapping\AttributeOverride.
https://github.com/doctrine/orm/blob/2.9.x/lib/Doctrine/ORM/Mapping/AttributeOverride.php
Thx
@beberlei commented on GitHub (Jun 17, 2021):
AttributeOverride is not yet supported as an Attribute
@adpeyre commented on GitHub (Jun 17, 2021):
Ok.
I thought it was supported because there is the attribute annotation.
@adpeyre commented on GitHub (Jun 21, 2021):
I need to set a different inversedBy value on my ManyToOne relation in Single Table Inheritance child context.
At this time, you confirm me I'm blocked if I'm working with the attribute mapping ?
@beberlei commented on GitHub (Jun 22, 2021):
@adpeyre you can workaround it by registering a load metadata listener and setting the data there.
@adpeyre commented on GitHub (Jun 22, 2021):
Thanks @beberlei , it works ;)