Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($cardsNotStored as $cardNotStored) {
- $this->entityManager->beginTransaction();
- try {
- $paymentMethod = $this->store($cardNotStored);
- $this->entityManager->flush();
- $this->entityManager->commit();
- } catch (UniqueConstraintViolationException $e) {
- $this->entityManager->rollBack();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement