public function findSimilarResources(PersistentResource $resource)
    {
        $query = $this->createQuery();
        $query->matching(
            $query->logicalAnd(
                $query->equals('sha1', $resource->getSha1()),
                $query->equals('filename', $resource->getFilename()),
                $query->equals('collectionName', $resource->getCollectionName())
            )
        );
        return $query->execute();
    }
public function findSimilarResources(PersistentResource $resource)
    {
        $query = $this->createQuery();
        $query->matching(
            $query->logicalAnd(
                $query->equals('sha1', $resource->getSha1()),
                $query->equals('filename', $resource->getFilename()),
                $query->equals('collectionName', $resource->getCollectionName())
            )
        );
        return $query->execute();
    }
public function findSimilarResources ( PersistentResource $ resource ) { $ query = $ this -> createQuery ( ) ; $ query -> matching ( $ query -> logicalAnd ( $ query -> equals ( 'sha1' , $ resource -> getSha1 ( ) ) , $ query -> equals ( 'filename' , $ resource -> getFilename ( ) ) , $ query -> equals ( 'collectionName' , $ resource -> getCollectionName ( ) ) ) ) ; return $ query -> execute ( ) ; }
Finds other resources which are referring to the same resource data, filename and collection

@param PersistentResource $resource The resource used for finding similar resources
@return QueryResultInterface The result, including the given resource
Finds other resources which are referring to the same resource data filename and collection