yii\db\Transaction::getIsActive PHP 메소드

getIsActive() 공개 메소드

Returns a value indicating whether this transaction is active.
public getIsActive ( ) : boolean
리턴 boolean whether this transaction is active. Only an active transaction can [[commit()]] or [[rollBack()]].
    public function getIsActive()
    {
        return $this->_level > 0 && $this->db && $this->db->isActive;
    }