Sokil\Mongo\Event::cancel PHP Метод

cancel() публичный Метод

Cancel related operation execution. If called as beforeInsert handler, than insert will be cancelled.
public cancel ( )
    public function cancel()
    {
        $this->cancelled = true;
        // propagation also not need
        $this->stopPropagation();
        return $this;
    }