mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Partially joined toMany-relation is set as full collection #6659
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 @villermen on GitHub (Mar 24, 2021).
Consider the following basic entity relation:
When you select a filtered portion of the "bars" relation:
You will end up with a hydrated
Foo::$barsproperty that contains only the bars whereBar::$option = 1. Even when the database contains entities for foo with other values forBar::$option.I would expect hydration of
Foo::$barsto trigger an additional query to retrieve the remaining entities in the relation, because the collection has not been fully loaded yet.