Skip to content

DbTransactionsAware

  • Full name: \Codefy\Framework\Support\Traits\DbTransactionsAware

Properties

useTransaction

Determines whether class uses transaction.

protected bool $useTransaction

Methods

withTransaction

Enable transaction in pipeline.

public withTransaction(): static

beginTransaction

Begin the transaction if enabled.

protected beginTransaction(): void

Throws:


commitTransaction

Commit the transaction if enabled.

protected commitTransaction(): void

Throws:


rollbackTransaction

Rollback the transaction if enabled.

protected rollbackTransaction(): void

Throws:



Automatically generated on 2025-10-13