-
Ben Argo authored
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.
2263bc4f