Pagerfanta/DoctrineORM/LegacyPaginator.php
private function cloneQuery(Query $query)
    {
        /* @var $cloneQuery Query */
        $cloneQuery = clone $query;
        $cloneQuery->setParameters($query->getParameters());
        foreach ($query->getHints() as $name => $value) {
            $cloneQuery->setHint($name, $value);
        }

        return $cloneQuery;
    }
private function cloneQuery(Query $query)
    {
        /* @var $cloneQuery Query */
        $cloneQuery = clone $query;
        $cloneQuery->setParameters($query->getParameters());
        foreach ($query->getHints() as $name => $value) {
            $cloneQuery->setHint($name, $value);
        }

        return $cloneQuery;
    }
private function cloneQuery ( Query $ query ) { /* @var $cloneQuery Query */ $ cloneQuery = clone $ query ; $ cloneQuery -> setParameters ( $ query -> getParameters ( ) ) ; foreach ( $ query -> getHints ( ) as $ name => $ value ) { $ cloneQuery -> setHint ( $ name , $ value ) ; } return $ cloneQuery ; }
Clones a query.

@param Query $query The query.

@return Query The cloned query.
Clones a query .