Vinelab / NeoEloquent

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

Does anyone have an example for creating a transaction? #323

Closed ghost closed 3 years ago

ghost commented 5 years ago

I am trying to create a transaction in NeoEloquent, but the transaction never rolled back or not working correctly

\DB::connection('neo4j')->transaction(function () { \App\Member::create(["name" => "Hello"]); throw new Exception(); });

member object always created and stored in the database !!

stale[bot] commented 3 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.