NerdsAndCompany\Schematic\Services\Base::getTransaction PHP 메소드

getTransaction() 보호된 메소드

Returns current transaction.
protected getTransaction ( ) : CDbTransaction
리턴 CDbTransaction
    protected function getTransaction()
    {
        if ($transaction = $this->getDbService()->getCurrentTransaction()) {
            return $transaction;
        }
        throw new \CDbException('Start transaction first before getting it');
    }