em->getRepository(Project::class); \assert($repository instanceof ProjectRepository); return $repository; } /** * {@inheritDoc} * * @param string $type * @param string $filter * @param int $limit * @param int $start * @param array $options * * @return array */ public function getLookupResults($type, $filter = '', $limit = 10, $start = 0, array $options = []): array { // Convert filter to string if it's an array (happens when $data is replaced with actual data) if (is_array($filter)) { $filter = implode('|', $filter); } // Extract projectId from options if provided $projectId = $options['projectId'] ?? null; // Results are already in the correct format (id => name) return $this->entityLoaderService->getLookupResults($type, (string) $filter, (int) $limit, (int) $start, $projectId); } }