Missing contructor for AttributeOverride Mapping #6763

Closed
opened 2026-01-22 15:38:09 +01:00 by admin · 5 comments
Owner

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

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
admin closed this issue 2026-01-22 15:38:09 +01:00
Author
Owner

@beberlei commented on GitHub (Jun 17, 2021):

AttributeOverride is not yet supported as an Attribute

@beberlei commented on GitHub (Jun 17, 2021): AttributeOverride is not yet supported as an Attribute
Author
Owner

@adpeyre commented on GitHub (Jun 17, 2021):

Ok.
I thought it was supported because there is the attribute annotation.

@adpeyre commented on GitHub (Jun 17, 2021): Ok. I thought it was supported because there is the attribute annotation.
Author
Owner

@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 ?

@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 ?
Author
Owner

@beberlei commented on GitHub (Jun 22, 2021):

@adpeyre you can workaround it by registering a load metadata listener and setting the data there.

@beberlei commented on GitHub (Jun 22, 2021): @adpeyre you can workaround it by registering a load metadata listener and setting the data there.
Author
Owner

@adpeyre commented on GitHub (Jun 22, 2021):

Thanks @beberlei , it works ;)

@adpeyre commented on GitHub (Jun 22, 2021): Thanks @beberlei , it works ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6763