Skip to content

[9.x] Add withoutEagerLoads() method to Builder - #41950

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
iamgergo:9.x
Apr 13, 2022
Merged

taylorotwell merged 1 commit into
laravel:9.xfrom
iamgergo:9.x

Conversation

@iamgergo

Copy link
Copy Markdown
Contributor

This PR just adds the withoutEagerLoads method to the Eloquent\Builder class.

// Before
$query->setEagerLoads([]);

// After
$query->withoutEagerLoads();

@iamgergo

Copy link
Copy Markdown
Contributor Author

I'm not sure why the SQL Server 2019 test is failing.

@allowing

Copy link
Copy Markdown
Contributor

I'm not sure why the SQL Server 2019 test is failing.

My PR same #41949

@taylorotwell
taylorotwell merged commit 560d2a7 into laravel:9.x Apr 13, 2022
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
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.

3 participants