From 038d53ccd4e0b745a88c38d3e4f16fcdda0ff662 Mon Sep 17 00:00:00 2001 From: Alexandre Lemaire Date: Wed, 20 Mar 2024 09:20:53 -0400 Subject: [PATCH] Addresses deprecation of merge. https://github.com/doctrine/orm/issues/8461 --- src/Mapper/AbstractDoctrineMapper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mapper/AbstractDoctrineMapper.php b/src/Mapper/AbstractDoctrineMapper.php index bbf3b85..b881d2d 100644 --- a/src/Mapper/AbstractDoctrineMapper.php +++ b/src/Mapper/AbstractDoctrineMapper.php @@ -45,10 +45,12 @@ public function save(object $entity): void $this->getEntityManager()->flush($entity); } + /** + * @deprecated Please use save instead + */ public function update(object $entity): void { - $this->getEntityManager()->merge($entity); - $this->getEntityManager()->flush(); + $this->save($entity); } public function delete(object $entity): void