Support for nesting attributes with PHP 8.1 #6887

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

Originally created by @beberlei on GitHub (Dec 12, 2021).

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

With PHP 8.1 attributes can now be nested. This allows to add some of the missing functionality that we have missed on the Attribute Driver support for PHP 8.0:

  • #[AttributeOverrides([new AttributeOverride(name: "foo", column: new Column(type: "string"))]) and the same for #[AssociationOverride].
  • #[JoinTable(joinColumns: [new JoinColumn], inverseJoinColumns: [new JoinColumn])
  • #[Table(indexes: [new Index()], uniqueConstraints: [new UniqueConstraint()])]

Follow up to #8266

This ticket replaces #8772 and #9174

Originally created by @beberlei on GitHub (Dec 12, 2021). ### Feature Request | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary With PHP 8.1 attributes can now be nested. This allows to add some of the missing functionality that we have missed on the Attribute Driver support for PHP 8.0: - `#[AttributeOverrides([new AttributeOverride(name: "foo", column: new Column(type: "string"))])` and the same for `#[AssociationOverride]`. - `#[JoinTable(joinColumns: [new JoinColumn], inverseJoinColumns: [new JoinColumn])` - `#[Table(indexes: [new Index()], uniqueConstraints: [new UniqueConstraint()])]` Follow up to #8266 This ticket replaces #8772 and #9174
admin closed this issue 2026-01-22 15:40:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6887