public function findByHashes(array $hashes): array
    {
        $result = [];
        if (count($hashes) > 0) {
            $queryBuilder = $this->entityManager->createQueryBuilder();
            $queryBuilder->select('if')
                         ->from(IconFile::class, 'if')
                         ->andWhere('if.hash IN (:hashes)')
                         ->setParameter('hashes', array_values(array_map('hex2bin', $hashes)));

            $result = $queryBuilder->getQuery()->getResult();
        }
        return $result;
    }
public function findByHashes(array $hashes): array
    {
        $result = [];
        if (count($hashes) > 0) {
            $queryBuilder = $this->entityManager->createQueryBuilder();
            $queryBuilder->select('if')
                         ->from(IconFile::class, 'if')
                         ->andWhere('if.hash IN (:hashes)')
                         ->setParameter('hashes', array_values(array_map('hex2bin', $hashes)));

            $result = $queryBuilder->getQuery()->getResult();
        }
        return $result;
    }
public function findByHashes ( array $ hashes ) : array { $ result = [ ] ; if ( count ( $ hashes ) > 0 ) { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) ; $ queryBuilder -> select ( 'if' ) -> from ( IconFile :: class , 'if' ) -> andWhere ( 'if.hash IN (:hashes)' ) -> setParameter ( 'hashes' , array_values ( array_map ( 'hex2bin' , $ hashes ) ) ) ; $ result = $ queryBuilder -> getQuery ( ) -> getResult ( ) ; } return $ result ; }
Finds the icon files with the specified hashes.
@param array|string[] $hashes
@return array|IconFile[]
Finds the icon files with the specified hashes .