sgpatil / oriquent

Orientdb Eloquent driver for Laravel 5
MIT License
47 stars 15 forks source link

Call to a member function processInsertGetId() on null #33

Closed gburu98-zz closed 7 years ago

gburu98-zz commented 7 years ago

Which may be the source of this error? error route

try $insertar->save() and return, and does not work...

gburu98-zz commented 7 years ago

I needed the \Orientdb in the model, but now I have another error: error

sgpatil commented 7 years ago

Which Laravel version you are using ?

gburu98-zz commented 7 years ago

I am using, Laravel 5.2.31

jr2wolfgang commented 7 years ago

This is also my issue now. I don't know why. We have the same issue with gburu98. At first I also have that processInsertGetId issue but then I just changed it to "extends \Orientdb" and everything went well. But then this simplePaginate becomes the new issue. Any help guys?

jr2wolfgang commented 7 years ago

Ok, so I already solved it! I'm using windows and my laravel version is 5.3 (it also works on version 5.2)

Go to this file: vendor\sgpatil\oriquent\src\Sgpatil\Orientdb\Eloquent\Builder.php Line: 371 paste the code below

public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null)

So basically, what I did was to add the $page=null on the parameter. Hope this helps anyone

sgpatil commented 7 years ago

Closing this as the issue has been resolved in latest release.