Skip to content

Commit e0050bb

Browse files
author
Marius
committed
fix eager loading retroactively laravel/framework#51825
1 parent b0b9618 commit e0050bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/CustomRelations/RelationCleverTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setConstraintsStaticFlag(BaseModel $model): void
3939
{
4040
if (
4141
'' === (string)RelationCleverTrait::$noConstraintsForRelationName
42-
|| '' === (string)$model->nowEagerLoadingRelationNameWithNoConstraints
42+
&& '' === (string)$model->nowEagerLoadingRelationNameWithNoConstraints
4343
) {
4444
return;
4545
}

0 commit comments

Comments
 (0)