Hi, here problem with cloning \Doctrine\ORM\QueryBuilder
$queryBuilder = new QueryBuilder($em);
$copy = clone $queryBuilder;
count($queryBuilder->getParameters()) // equals 2
public function __clone
$this->parameters = clone $this->parameters;
Ah, nevermind. You're right. Will change my code
Actually, I just implemented your expected behaviour (see tests), which is compatible with what the `AbstractQuery` does. It can also be done the other way around, waiting for feedback by Benjamin Eberlei
Hi. Thanks for the quick response.
I looked at the changes, and have a question: whether you need to reset the parameters when cloning? Thus broken backward compatibility with versions <2.3.
This is being handled at DDC-1936 (https://github.com/doctrine/doctrine2/pull/404)
Sorry, this is a typo, was meant: $copy = clone $queryBuilder;
Is `$copy = clone $queryBuilder();` a typo?