Skip to content

Commit 04f0fc1

Browse files
committed
Merge pull request #3 from mayeco/duplicate_fix
Database duplicate return fix
2 parents 793a731 + 14d61ff commit 04f0fc1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

EventListener/StringGeneratorListener.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ private function generateId($property, Vivait\StringGenerator $annotation)
7373
}
7474

7575
if ($this->repo->findOneBy([$property => $str])) {
76-
$this->generateId($property, $annotation);
76+
return $this->generateId($property, $annotation);
7777
} else {
7878
return $str;
7979
}
8080

81-
8281
}
8382

84-
85-
}
83+
}

0 commit comments

Comments
 (0)