Closed asifnadaf closed 4 years ago
Hi, Probably you are using Eloquent class of Laravel for querying database. If you have problem with your model about showing the Neoeloquent class try this:
class User extends \NeoEloquent{}
I hope it will solve your problem.
Thanks I will try this solution and revert.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
I using Laravel 5.6 and NeoEloquent 1.4.7. I am getting following error while creating a record for new record on neo4j. However, the node gets created on Neo4j.
/var/www/html/plusconnect.tk/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php
Arguments "Call to a member function lastInsertId() on null"
The error goes away if the line below is commented from vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php $id = $query->getConnection()->getPdo()->lastInsertId($sequence);
I am using the above solution as a workaround. What could be the issue?
May be it is expecting the primary key of the last record created and NeoEloquent is not receiving it.
Thanks