doctrine/mongodb-odm — Issue #182: The "$newObj" in "Expr" need "prepareQuery" too
Author: tecbot
Created: 2011-11-01 20:16:57+00:00
State: open

The Expr prepares only the query value but not the new/update data.
So if i make a query like:

$dm->createQueryBuilder('Foo')
->findAndUpdate()
->field('bar')->inc(1)
->getQuery()
->execute();

.. and my name for "bar" is "b", doctrine makes a update with "bar" and not "b".