src/Repository/QueryObject/SelectEventTriggers.php
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);
    }
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);
    }
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 ) ; }
Emit before select event

@param Select $query
@param EntityDescriptorInterface $entityDescriptor

@return \League\Event\EventInterface|string
Emit before select event