Now $append param of QueryBuilder::add() method has no effect for where and having parts.
will result in the loss of condition u.some = ?1
Explanation in code
526 line of Doctrine/ORM/QueryBuilder.php, part of body add() method:
According to the code above $append parameter is checked in conjunction with $isMultiple variable, which is:
But in 56 line of this file, class property _dqlParts keys where and having are equal null:
As a result, for the parts where and having condition $append && $isMultiple will never be true, regardless of $append value.
I can offer a patch on Github to fix this bug, if necessary.