protected function triggerDelete(
        EntityInterface $entity, $action = Delete::ACTION_BEFORE_DELETE
    ) {
        $event = new Delete($entity);
        $event->setAction($action);
        return Orm::getEmitter($this->getEntityClassName())
            ->emit($event);
    }