Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Getting Undefined offset for find() in laravel 5.6 #344

Closed pradeep-upadhyaya closed 2 years ago

pradeep-upadhyaya commented 3 years ago

Hi, I am using laravel: 5.6 and vinelab/neoeloquent: 1.4.6.

I have built a simple laravel login app and saving sessions in the database. If I enter to this URLlocalhost:8081/login I am getting the below error.

Undefined offset: 0

this error is triggering by the below line

$session = (object) $this->getQuery()->find($sessionId);

If I remove find() in the above line it will redirect to the login page successfully(but not able to log in).

Can anyone help me out to solve this? Let me know if anyone needs more details. Thank you.

stale[bot] commented 2 years ago

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.

Mulkave commented 2 years ago

@pradeep-upadhyaya please update your NE installation to v1.5 (the latest) and try again. Thank you for your patience, we've been a bit stale but now back in activity with the latest version of the official Neo4j-php driver. Good luck!

If you happen to face the same problem please let us know by reopening this issue.