Association is null in lazy initialized element collection

Description

When lazily initializing an element collection, ORM 6.2+ wrongly sets an association to null, since the “parent entity” is initialized, hence avoiding resolution in EntityDelayedFetchInitializer#resolveInstance.

It’s wrong though, because the getParentEntityInitializer should return null if a parentAccess is a collection initializer instead of walking up further.

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created November 3, 2023 at 1:22 PM
Updated November 23, 2023 at 1:53 PM
Resolved November 6, 2023 at 3:13 PM