lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php
protected function getHash($query, $criteria, ?array $orderBy = null, $limit = null, $offset = null)
    {
        [$params] = $criteria instanceof Criteria
            ? $this->persister->expandCriteriaParameters($criteria)
            : $this->persister->expandParameters($criteria);

        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
    }
protected function getHash($query, $criteria, ?array $orderBy = null, $limit = null, $offset = null)
    {
        [$params] = $criteria instanceof Criteria
            ? $this->persister->expandCriteriaParameters($criteria)
            : $this->persister->expandParameters($criteria);

        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
    }
protected function getHash ( $ query , $ criteria , ? array $ orderBy = null , $ limit = null , $ offset = null ) { [ $ params ] = $ criteria instanceof Criteria ? $ this -> persister -> expandCriteriaParameters ( $ criteria ) : $ this -> persister -> expandParameters ( $ criteria ) ; return sha1 ( $ query . serialize ( $ params ) . serialize ( $ orderBy ) . $ limit . $ offset ) ; }
Generates a string of currently query

@param string  $query
@param string  $criteria
@param mixed[] $orderBy
@param int     $limit
@param int     $offset

@return string
Generates a string of currently query