Skip to content

Support for nesting attributes with PHP 8.1 #9240

@beberlei

Description

@beberlei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions