[PR #10131] Make ReflectionEnumProperty::getValue() return the enum #12118

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

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

State: closed
Merged: No


UoW compares orig and actual value. Orig value is the enum. But without this change, actual value is the inner value of the BackedEnum. Therefore, Entities with enum field are always considered a change.

So I though about it like this:

  1. the orig and actual values MUST be enums so they're comparable – implies that property must return enum as a value and not the backed value.
  2. I've found out the enumType is not filled when hydrating entity.

Resolves #10124, #10125.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10131 **State:** closed **Merged:** No --- UoW compares orig and actual value. Orig value is the enum. But without this change, actual value is the inner value of the BackedEnum. Therefore, Entities with enum field are always considered a change. So I though about it like this: 1. the orig and actual values MUST be enums so they're comparable – implies that property must return enum as a value and not the backed value. 2. I've found out the enumType is not filled when hydrating entity. Resolves #10124, #10125.
admin added the pull-request label 2026-01-22 16:12:59 +01:00
admin closed this issue 2026-01-22 16:12:59 +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#12118