ulobby / NeoEloquent

An extension of Laravel Elqouent that supports Neo4j, a native graph database
MIT License
41 stars 17 forks source link

array_map called with string instead of array in insertGetId() #33

Closed SimonThordal closed 3 years ago

SimonThordal commented 3 years ago

(Note: you don't need to follow this template, nor to keep headlines or bold sentences - they are just there to guide you. Feel free to delete everything. We review every issue even if we don't immediately respond.)

Description:

When insertGetId() is called it throws an exception:

ErrorException array_map(): Expected parameter 2 to be an array, string given vendor/ulobby/neoeloquent/src/Query/Builder.php:146 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError [internal] array_map vendor/ulobby/neoeloquent/src/Query/Builder.php:146 Vinelab\NeoEloquent\Query\Builder::insertGetId

Should be updated to not use array_map if $this->from isn't an array.