public function findBySha1($sha1Hash)
    {
        $query = $this->createQuery();
        $query->matching($query->equals('sha1', $sha1Hash));
        $resources = $query->execute()->toArray();
        foreach ($this->addedResources as $importedResource) {
            if ($importedResource->getSha1() === $sha1Hash) {
                $resources[] = $importedResource;
            }
        }

        return $resources;
    }
public function findBySha1($sha1Hash)
    {
        $query = $this->createQuery();
        $query->matching($query->equals('sha1', $sha1Hash));
        $resources = $query->execute()->toArray();
        foreach ($this->addedResources as $importedResource) {
            if ($importedResource->getSha1() === $sha1Hash) {
                $resources[] = $importedResource;
            }
        }

        return $resources;
    }
public function findBySha1 ( $ sha1Hash ) { $ query = $ this -> createQuery ( ) ; $ query -> matching ( $ query -> equals ( 'sha1' , $ sha1Hash ) ) ; $ resources = $ query -> execute ( ) -> toArray ( ) ; foreach ( $ this -> addedResources as $ importedResource ) { if ( $ importedResource -> getSha1 ( ) === $ sha1Hash ) { $ resources [ ] = $ importedResource ; } } return $ resources ; }
Find all resources with the same SHA1 hash

@param string $sha1Hash
@return array
Find all resources with the same SHA1 hash