-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate objects in collection of nested objects with multiple references #9579
Comments
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 10, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 10, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 10, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 11, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 11, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 11, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 11, 2022
Hi, |
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 18, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 18, 2022
klammbueddel
pushed a commit
to klammbueddel/orm
that referenced
this issue
Mar 18, 2022
greg0ire
added a commit
that referenced
this issue
Mar 18, 2022
…sted-collections Add test to reproduce #9579
n-e-m-a-nj-a
pushed a commit
to n-e-m-a-nj-a/orm
that referenced
this issue
Mar 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Given 3 classes, a
Container
containing a list ofItem
s and each item containing multiplePart
s, if the container references both, the complete list of items ($container->items
) and points to one item in the list ($container->currentItem
), the parts of the item will be duplicated in the result set if fetched via DQL.As a sidenote, the issue does not occur if the objects are already managed (see
testIfAlreadyManaged
in #9580).How to reproduce
Expected behavior
The
$item->parts
should not contain duplicates.The text was updated successfully, but these errors were encountered: