Skip to content

Commit

Permalink
Addresses deprecation of merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeven committed Mar 20, 2024
1 parent 7c77d57 commit 038d53c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mapper/AbstractDoctrineMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 038d53c

Please sign in to comment.