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

fix FilterEagerLoadingExtension do not remove where clause if it did … #1636

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jan 9, 2018

…not change

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets na
License MIT
Doc PR na

@soyuka soyuka changed the base branch from master to 2.1 January 9, 2018 10:55
@soyuka soyuka force-pushed the hotfix/filter-eager-loading-ext branch from a04b31e to 776f62d Compare January 10, 2018 10:20
@soyuka soyuka merged commit 46e1519 into api-platform:2.1 Jan 10, 2018
@soyuka soyuka deleted the hotfix/filter-eager-loading-ext branch January 10, 2018 11:25
}
}

if (false === $changedWhereClause) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just check if the where clause of the query builder is empty instead of introducing a new variable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a check for that here. This is really an edge case.

hoangnd25 pushed a commit to hoangnd25/core that referenced this pull request Feb 23, 2018
…loading-ext

fix FilterEagerLoadingExtension do not remove where clause if it did …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants