Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 807 Bytes

2024-01-12-fix-flow-dispatcher-error-handling-for-nested-transactions.md

File metadata and controls

13 lines (12 loc) · 807 Bytes
title issue author author_email author_github
Fix flow dispatcher error handling for nested transactions
NEXT-33086
Maximilian Rüsch, Aydin Hassan
maximilian.ruesch@pickware.de, a.hassan@shopware.com
maximilianruesch, AydinHassan

Core

  • Added a new interface \Shopware\Core\Content\Flow\Dispatching\TransactionalAction which flow actions can implement to flag that they should be executed within a database transaction.
  • Added \Shopware\Core\Content\Flow\Dispatching\TransactionFailedException so that transactional actions can force a rollback.
  • Changed \Shopware\Core\Content\Flow\Dispatching\FlowDispatcher to rethrow exceptions which occur during a nested transaction if save points are not enabled.

See ADR for more info.