Skip to content
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

#3466 - Duplicated entities in findMany when a ManyToOne relation is fetched #3469

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

rbygrave
Copy link
Member

@rbygrave rbygrave commented Sep 2, 2024

#3466 - Duplicated entities in findMany when a ManyToOne relation is fetched

Internally in OrmQueryDetail.markQueryJoins() the SpiQueryManyJoin is determined and returned. This change uses this and effectively removes the code from OrmQueryRequest.determineMany() and BeanDescriptor.manyProperty() which was the source of this issue (performing a similar task but not correctly taking the full path into account and hence the source of this bug).

…fetched (Postgresql)

Internally in OrmQueryDetail.markQueryJoins() the SpiQueryManyJoin is determined and returned. This change uses this and effectively removes the code from OrmQueryRequest.determineMany() and BeanDescriptor.manyProperty() which was the source of this issue (performing a similar task but not correctly taking the full path into account and hence the source of this bug).
@rbygrave rbygrave self-assigned this Sep 2, 2024
@rbygrave rbygrave added the bug label Sep 2, 2024
@rbygrave rbygrave merged commit 4b0fcb1 into master Sep 2, 2024
1 check passed
@rbygrave rbygrave deleted the feature/orderBy2 branch September 2, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated entities in findMany when a ManyToOne relation is fetched (Postgresql)
1 participant