public function findModNamesByIds(array $modCombinationIds): array
    {
        $result = [];
        if (count($modCombinationIds) > 0) {
            $queryBuilder = $this->entityManager->createQueryBuilder();
            $queryBuilder->select('m.name')
                         ->from(ModCombination::class, 'mc')
                         ->innerJoin('mc.mod', 'm')
                         ->andWhere('mc.id IN (:modCombinationIds)')
                         ->addGroupBy('m.name')
                         ->setParameter('modCombinationIds', array_values($modCombinationIds));

            foreach ($queryBuilder->getQuery()->getResult() as $row) {
                $result[] = $row['name'];
            }
        }
        return $result;
    }
public function findModNamesByIds(array $modCombinationIds): array
    {
        $result = [];
        if (count($modCombinationIds) > 0) {
            $queryBuilder = $this->entityManager->createQueryBuilder();
            $queryBuilder->select('m.name')
                         ->from(ModCombination::class, 'mc')
                         ->innerJoin('mc.mod', 'm')
                         ->andWhere('mc.id IN (:modCombinationIds)')
                         ->addGroupBy('m.name')
                         ->setParameter('modCombinationIds', array_values($modCombinationIds));

            foreach ($queryBuilder->getQuery()->getResult() as $row) {
                $result[] = $row['name'];
            }
        }
        return $result;
    }
public function findModNamesByIds ( array $ modCombinationIds ) : array { $ result = [ ] ; if ( count ( $ modCombinationIds ) > 0 ) { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) ; $ queryBuilder -> select ( 'm.name' ) -> from ( ModCombination :: class , 'mc' ) -> innerJoin ( 'mc.mod' , 'm' ) -> andWhere ( 'mc.id IN (:modCombinationIds)' ) -> addGroupBy ( 'm.name' ) -> setParameter ( 'modCombinationIds' , array_values ( $ modCombinationIds ) ) ; foreach ( $ queryBuilder -> getQuery ( ) -> getResult ( ) as $ row ) { $ result [ ] = $ row [ 'name' ] ; } } return $ result ; }
Finds the mod names of the specified combination ids.
@param array|int[] $modCombinationIds
@return array|string[]
Finds the mod names of the specified combination ids .