em ->createQueryBuilder() ->from(StopEntity::class, 'stop') ->select('stop') ; return $this->allFromQueryBuilder($builder, $modifiers, [ 'alias' => 'stop', 'entity' => StopEntity::class, 'type' => Stop::class, ]); } protected static function getHandlers() { return array_merge(parent::getHandlers(), [ IncludeDestinations::class => IncludeDestinationsDatabaseHandler::class, ]); } }