[PR #9384] Allow using Enum from different namespace than Entity #11570

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

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

State: closed
Merged: Yes


Allows using Enums from different namespace than Entity, for example, App\DBAL\Enum and App\Entity.
Without this fix it works only when both Enum and Entity are placed in the same namespace like App\Entity, and nobody is responsible for autoloading these Enums.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9384 **State:** closed **Merged:** Yes --- Allows using Enums from different namespace than Entity, for example, `App\DBAL\Enum` and `App\Entity`. Without this fix it works only when both Enum and Entity are placed in the same namespace like `App\Entity`, and nobody is responsible for autoloading these Enums.
admin added the pull-request label 2026-01-22 16:11:11 +01:00
admin closed this issue 2026-01-22 16:11:11 +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#11570