mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
ArrayHydrator can't load OneToMany related entities collection. Differences with ObjectHydrator #5731
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ultracote on GitHub (Oct 5, 2017).
For example, I have next classes:
In result $objectResult and $arrayResult have different data.
In ObjectHydrator "fields" loaded there
ArrayHydrator in the same logic branch take element loaded above from $this->gatherRowData():
$this->gatherRowData() returns for both (Array and Object hydrators) array without "fields", but ObjectHydrator adds "fields" below, and the ArrayHydrator does not.
Which of these works incorrectly? ObjectHydrator or ArrayHydrator?
@ultracote commented on GitHub (Nov 10, 2017):
Is it a bug?
@fesor commented on GitHub (Nov 14, 2017):
That's why it considered to be removed in 3.0: #3998