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

[Autocomplete] Fix handling of associated properties in DQL joins #2377

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

HugoSEIGLE
Copy link

Q A
Bug fix? yes
New feature? no
Issues Fix #2370
License MIT

Changes:

  • The alias generation logic has been improved to correctly handle nested associations and avoid alias collisions.
  • The code was modified to ensure that the parent entity is correctly accounted for when generating aliases, which helps prevent issues in complex joins with multiple associated entities.
  • A check was added to verify the existence of a parent property before using it as part of the alias. This prevents logical errors in cases where the parent entity is not directly involved in the join.

@carsonbot carsonbot added Bug Bug Fix Status: Needs Review Needs to be reviewed labels Nov 14, 2024
@smnandre smnandre changed the title Fix issue with incorrect handling of associated properties in DQL joins [Autocomplete] Fix handling of associated properties in DQL joins Nov 15, 2024
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.

[Autocomplete] (Searchable Fields): Incorrect search field selection due to similar field names
3 participants