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;
}