ulobby / NeoEloquent

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

Batching Jobs throws error #59

Open harris21 opened 9 months ago

harris21 commented 9 months ago

Description:

In the latest Laravel versions, job batching was introduced. It seems that NeoEloquent is not able to run Bus::batch($jobs) as expected.

Steps To Reproduce:

Try batching a single job, to test it out.

Expected result

Jobs to be batched and dispatched.

Actual result

 ERROR  Call to undefined method Vinelab\NeoEloquent\DatabaseDriver\Drivers\Laudis\ResultSet::current() in vendor/ulobby/neoeloquent/src/Query/Builder.php on line 841.

Error 

Call to undefined method Vinelab\NeoEloquent\DatabaseDriver\Drivers\Laudis\ResultSet::current()

at vendor/ulobby/neoeloquent/src/Query/Builder.php:841
   837▕      * @return mixed|static
   838▕      */
   839▕     public function first($columns = ['*'])
   840▕     {
➜841▕         $results = $this->take(  1)->get($columns)->current();
   842▕ 
   843▕         return (isset($results[  0]) && count($results[  0]) >   0) ? $results[  0]->getProperties() : null;
   844▕     }
   845▕