mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #8266] [GH-8265] Prototype for Attribute Metadata Driver #10888
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?
Original Pull Request: https://github.com/doctrine/orm/pull/8266
State: closed
Merged: Yes
Support for Attribute Metadata Driver with PHP 8+
Note: For now the
AttributeDriverdoes not support attribute overrides, association overrides, named queries, named native queries and sql resultset mapping, because of missing nested attributes support. This is not a big problem, because these are quite edge case features some of which we have thought about removing anyways. As for the overwrites, we should think of a solution in the near future.A few other deviations from the Annotation based Driver:
@JoinTableholding join columns and inverse join columns as a property, you use#[ORM\JoinColumn]and#[ORM\InverseJoinColumn]on the top level.@Tableholding indexes and unique constraints, these are also attributes on the top level of a declaration.Todos:
Fixes #8265