Entity / property hydration issues after upgrading 2.5.14 => 2.6.0 #5822

Open
opened 2026-01-22 15:18:51 +01:00 by admin · 0 comments
Owner

Originally created by @holtkamp on GitHub (Dec 25, 2017).

After upgrading from 2.5.14 to 2.6.0 some functionality broke which seems to relate to the hydration of properties of Entities that are part of a (multi-level) DiscriminatorMap:

  • Entity X is fetched by following an association with another Entity Y:
    • 2.5.14 Entity is acquired and all properties as populated / set
    • 2.6.0 Entity is acquired properly, but the properties specific to the Entity are not populated / set. When loading the Entity X directly using the repository and its primary key, all properties are populated.
  • for a certain query the Entity-specific repository returns an result array:
    • 2.5.14 the array contains one entry: an object of class "EntityName"
    • 2.6.0 the array contains one entry: a NULL value

I can reproduce it on my local environment, but can not pinpoint it exactly yet. Will have a look at the current tests and try to come up with a test.

Originally created by @holtkamp on GitHub (Dec 25, 2017). After upgrading from `2.5.14` to `2.6.0` some functionality broke which seems to relate to the hydration of properties of Entities that are part of a (multi-level) DiscriminatorMap: - Entity X is fetched by following an association with another Entity Y: - `2.5.14` Entity is acquired and all properties as populated / set - `2.6.0` Entity is acquired properly, but the properties specific to the Entity are not populated / set. When loading the Entity X directly using the repository and its primary key, all properties are populated. - for a certain query the Entity-specific repository returns an result array: - `2.5.14` the array contains one entry: an object of class "EntityName" - `2.6.0` the array contains one entry: a NULL value I can reproduce it on my local environment, but can not pinpoint it exactly yet. Will have a look at the current tests and try to come up with a test.
admin added the Bug label 2026-01-22 15:18:51 +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#5822