M1: CRUD-Slice 'Mahlzeit' Schritt 2 – UI (Controller, Templates, Routen, Feature-Tests)
This commit is contained in:
@@ -22,7 +22,7 @@ final class EntityManagerTransactionManager implements TransactionManagerInterfa
|
||||
public function execute(\Closure $work): mixed
|
||||
{
|
||||
try {
|
||||
return $this->em->transactional(static fn () => $work($work));
|
||||
return $this->em->wrapInTransaction($work);
|
||||
} catch (\Throwable $e) {
|
||||
$this->em->clear();
|
||||
throw $e;
|
||||
|
||||
Reference in New Issue
Block a user