File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -167,12 +167,14 @@ public function isFinished(): bool
167
167
*/
168
168
private function handleNeo4jException (Neo4jException $ e ): void
169
169
{
170
- $ classifications = array_map (static fn (Neo4jError $ e ) => $ e ->getClassification (), $ e ->getErrors ());
171
- $ classifications = array_unique ($ classifications );
172
-
173
- $ intersection = array_intersect ($ classifications , TransactionHelper::ROLLBACK_CLASSIFICATIONS );
174
- if ($ intersection !== []) {
175
- $ this ->isRolledBack = true ;
170
+ if (!$ this ->isFinished ()) {
171
+ $ classifications = array_map (static fn (Neo4jError $ e ) => $ e ->getClassification (), $ e ->getErrors ());
172
+ $ classifications = array_unique ($ classifications );
173
+
174
+ $ intersection = array_intersect ($ classifications , TransactionHelper::ROLLBACK_CLASSIFICATIONS );
175
+ if ($ intersection !== []) {
176
+ $ this ->isRolledBack = true ;
177
+ }
176
178
}
177
179
178
180
throw $ e ;
You can’t perform that action at this time.
0 commit comments