Sandbox\Model\String::afterUpdate PHP Method

afterUpdate() public method

public afterUpdate ( )
    public function afterUpdate()
    {
        if ($this->data['name'] === 'throw_after_update') {
            throw new \RuntimeException('', 2);
        }
        if ($this->data['name'] === 'update_commit_transaction') {
            if (!$this->db->inTransaction()) {
                throw new \RuntimeException('There is no active transaction.');
            }
            $this->db->commit();
        }
    }