Skip to content

Commit 9ce90cb

Browse files
author
Admin
committed
Fix eager load
1 parent 0b936e2 commit 9ce90cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/CrudProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ function (
147147
Relation::macro('noConstraintsForRelationName', function (?string $relation = null): ?string {
148148
if (\property_exists(Relation::class, 'noConstraintsForRelationName')) {
149149
if (\func_num_args() === 0) {
150-
return static::noConstraintsForRelationName;
150+
return static::$noConstraintsForRelationName;
151151
}
152152

153-
return static::noConstraintsForRelationName = $relation;
153+
return static::$noConstraintsForRelationName = $relation;
154154
}
155155

156156
global $noConstraintsForRelationName;

0 commit comments

Comments
 (0)