Skip to content

Commit

Permalink
fix: wrong method call in JobReferencesUpdateListener
Browse files Browse the repository at this point in the history
New Mongo ODM Querybuilder does not support 'update()->multiple(true)',
but 'updateMany()' instead
  • Loading branch information
TiSiE committed Jul 29, 2021
1 parent ca2545d commit 4ea5e81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function preUpdate(LifecycleEventArgs $eventArgs)
$userId = $user ? $user->getId() : null;

$dm->createQueryBuilder('Applications\Entity\Application')
->update()->multiple(true)
->updateMany()
->field('refs.jobs.userId')->set($userId)
->field('refs.jobs.__id__')->equals($document->getId())
->field('refs.jobs.userId')->notEqual($userId)
Expand Down

0 comments on commit 4ea5e81

Please sign in to comment.