Skip to content

Commit 6d4888a

Browse files
committed
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.
1 parent ebf5a38 commit 6d4888a

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)