Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batching Jobs throws error #59

Open
harris21 opened this issue Dec 14, 2023 · 0 comments
Open

Batching Jobs throws error #59

harris21 opened this issue Dec 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@harris21
Copy link
Member

harris21 commented Dec 14, 2023

  • Laravel Version: 10.17.0
  • PHP Version: 8.2.13
  • NeoEloquent Version: 9.4.1

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();
   842843return (isset($results[  0]) && count($results[  0]) >   0) ? $results[  0]->getProperties() : null;
   844▕     }
   845
@harris21 harris21 added the bug Something isn't working label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant