public function triggerBeforeSelect(
        Select $query, EntityDescriptorInterface $entityDescriptor
    ) {
        $event = new \Slick\Orm\Event\Select(
            null,
            [
                'query' => $query,
                'entityDescriptor' => $entityDescriptor
            ]
        );
        $event->setAction(\Slick\Orm\Event\Select::ACTION_BEFORE_SELECT);
        return Orm::getEmitter($this->getEntityClassName())
            ->emit($event);
    }