I work on a project with symfony2 and doctrine-mongodb-odm. I want to execute an atomic update on several documents with the querybuilder but I am missing something:
$this->createQueryBuilder('MyBundle:MyDoc')
->update()
->field('isOpen')->set(false)
->field('isOpen')->equals(true)
->getQuery()
->execute();
It works but it only updates one document. I guess I should add an option like
array('multi' => true)
somewhere but I didn't find anything about that in the docs.
Can somebody help me please?