Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40edd68

Browse filesBrowse files
Ingoring preventsLazyLoading when using Automatically Eager Loading (#55771)
1 parent 5a915b3 commit 40edd68
Copy full SHA for 40edd68

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Copy file name to clipboardExpand all lines: src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function getRelationValue($key)
562562
return $this->relations[$key];
563563
}
564564

565-
if ($this->preventsLazyLoading) {
565+
if ($this->preventsLazyLoading && ! self::isAutomaticallyEagerLoadingRelationships()) {
566566
$this->handleLazyLoadingViolation($key);
567567
}
568568

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.