@@ -333,7 +333,7 @@ |
||
| 333 | 333 | |
| 334 | 334 | $relation = call_user_func([$model, $this->relationName]); |
| 335 | 335 | |
| 336 | - if (!$relation instanceof Relation |
|
| 336 | + if (!$relation instanceof Relation |
|
| 337 | 337 | && !$relation instanceof MorphMany |
| 338 | 338 | && !$relation instanceof BelongsToMany) { |
| 339 | 339 | throw new \Exception('hasMany field must be a HasMany or MorphMany relation.'); |