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

commitTransaction

Commit the transaction if enabled.

protected commitTransaction(): void

rollbackTransaction

Rollback the transaction if enabled.

protected rollbackTransaction(): void