Phalcon\Test\Models\Subscriptores::beforeDelete PHP Method

beforeDelete() public method

public beforeDelete ( )
    public function beforeDelete()
    {
        if ($this->email == '[email protected]') {
            $this->appendMessage(new Message('Sorry this cannot be deleted'));
            return false;
        }
        return true;
    }