CodeExplorer resolveCategoryPath example
private function hydrateSearchResult(string
$entity, array
$data): array
{ $data =
array_map(static function D
$row) { if (\
array_key_exists('_score',
$row) && \
array_key_exists(0,
$row)) { return $row[0
];
} return $row;
},
$data);
if ($entity === Category::
class) { $data =
$this->
resolveCategoryPath($data);
} return $data;
} private function getEntitySearchFields(string
$entity): array
{ $entityManager =
$this->
get(ModelManager::
class);
$metaData =
$entityManager->
getClassMetadata($entity);
$fields =
array_filter(