[PR #9671] Conditionally extend the old AnnotationDriver class #11788

Open
opened 2026-01-22 16:11:55 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9671

State: closed
Merged: Yes


Fixes #9668.
Replaces #9670.

This PR restores the old inheritance chain of AnnotationDriver and AttributeDriver if Persistence 2 is installed. Unfortunately, DoctrineModule uses a flawed logic to determine the constructor arguments of a mapping driver class, see doctrine/DoctrineModule#774. With this change, that logic should work again.

When merging this PR up to 3.0.x, I would simply revert it.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9671 **State:** closed **Merged:** Yes --- Fixes #9668. Replaces #9670. This PR restores the old inheritance chain of `AnnotationDriver` and `AttributeDriver` if Persistence 2 is installed. Unfortunately, DoctrineModule uses a flawed logic to determine the constructor arguments of a mapping driver class, see doctrine/DoctrineModule#774. With this change, that logic should work again. When merging this PR up to 3.0.x, I would simply revert it.
admin added the pull-request label 2026-01-22 16:11:55 +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#11788