5.1.3.2.2. Baleen\Migrations\Migration\Capabilities\TransactionAwareInterface¶
-
interface
TransactionAwareInterface
¶ Indicates a migration can be handled within a transaction (commonly used in database migrations) and provides methods for the different stages of a transaction.
-
begin
()¶ Called when the transaction should be begun.
Returns: void
-
finish
()¶ Called when the transaction should be finished.
Returns: void
-
abort
(Exception $e)¶ Called when the transaction should be cancelled.
Parameters: - $e (Exception) –
Returns: void
-