Skip to content

Commit 3a8f9db

Browse files
benargoDennis Heller
authored andcommitted
Add required use statement
Without this statement, the reaffirming of belongsToMany relations would fail. The original commit was to prove a point in an issue, but for it to work in the real world this extra bit is added. (cherry picked from commit 6d4888a)
1 parent 82e60a3 commit 3a8f9db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Jenssegers/Mongodb/Helpers/QueriesRelationships.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Closure;
66
use Illuminate\Database\Eloquent\Relations\BelongsTo;
7+
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
78
use Illuminate\Database\Eloquent\Relations\HasOneOrMany;
89
use Jenssegers\Mongodb\Eloquent\Model;
910

0 commit comments

Comments
 (0)