• Ben Argo's avatar
    Fix array to string conversion · 2263bc4f
    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
Name
Last commit
Last update
src/Jenssegers/Mongodb Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...