AttributeOverride annotation is also an attribute but that is not reachable #6867

Closed
opened 2026-01-22 15:40:23 +01:00 by admin · 2 comments
Owner

Originally created by @brzuchal on GitHub (Nov 3, 2021).

Bug Report

Annotation AttributeOverride carry #[Attribute] attribute unreasonably.

Q A
BC Break no
Version 2.10.x

Summary

Currently AttributeOverride is an annotation but the class declaration also consists of #[Attribute] attributes.
This implies a false impression for the attribute to be usable while it's false because there is no way to apply it nor class constructor which could be used on entity class as an attribute.

Originally created by @brzuchal on GitHub (Nov 3, 2021). ### Bug Report Annotation `AttributeOverride` carry `#[Attribute]` attribute unreasonably. | Q | A |------------ | ------ | BC Break |no | Version | 2.10.x #### Summary Currently `AttributeOverride` is an annotation but the class declaration also consists of `#[Attribute]` attributes. This implies a false impression for the attribute to be usable while it's false because there is no way to apply it nor class constructor which could be used on entity class as an attribute.
admin closed this issue 2026-01-22 15:40:25 +01:00
Author
Owner

@beberlei commented on GitHub (Nov 7, 2021):

Planing this for 2.11 as a larger improvement to AttributeDriver with PHP 8.1 and nested attributes.

@beberlei commented on GitHub (Nov 7, 2021): Planing this for 2.11 as a larger improvement to `AttributeDriver` with PHP 8.1 and nested attributes.
Author
Owner

@beberlei commented on GitHub (Dec 18, 2021):

Fixed in #9240

@beberlei commented on GitHub (Dec 18, 2021): Fixed in #9240
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6867