Commit 2263bc4
committed
Fix array to string conversion
With ‘BelongsToMany’ relationships calling the function `Jenssegers\Mongodb\Eloquent\Model::has` can throw an ErrorException with ‘Array to string conversion’.
By flattening the collection here we can avoid triggering the exception.1 parent 1358e50 commit 2263bc4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments