Skip to content

[5.6] Moving code from the query builder to the eloquent builder#23357

Merged
taylorotwell merged 1 commit into5.6from
unknown repository
Mar 1, 2018
Merged

[5.6] Moving code from the query builder to the eloquent builder#23357
taylorotwell merged 1 commit into5.6from
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 1, 2018

A previous pull request #19013, which aimed to solve the issue of multiple select statements causing an SQL error within a withCount function, assumed a sub query would only need one select statement.

This is not the case, so the code that removes excess filters is moved to the withCount method where the sub query does only need one select.

A previous pull request #19013, which aimed to solve the issue of multiple select statements causing an SQL error within a withCount function, assumed a sub query would only need one select statement.

This is not the case, so the code that removes excess filters is moved to the withCount method where the sub query does only need one select.
@ghost
Copy link
Author

ghost commented Mar 1, 2018

Resubmitting with passing test

@GrahamCampbell GrahamCampbell changed the title #23327 Moving code from the query builder to the eloquent builder [5.6] Moving code from the query builder to the eloquent builder Mar 1, 2018
@GrahamCampbell GrahamCampbell changed the title [5.6] Moving code from the query builder to the eloquent builder [5.6] Moving code from the query builder to the eloquent builder Mar 1, 2018
@taylorotwell taylorotwell merged commit 0556a4a into laravel:5.6 Mar 1, 2018
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