Sandbox\Model\String::afterDelete PHP Method

afterDelete() public method

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