Skip to content

Commit

Permalink
Merge pull request #110 from Saeven/feature/doctrine-orm-update
Browse files Browse the repository at this point in the history
Updates doctrine-orm-module
  • Loading branch information
Saeven committed Mar 20, 2024
2 parents 8da6d49 + 038d53c commit 41c8027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"laminas/laminas-http": "^2.15",
"laminas/laminas-router": "^3.5",
"doctrine/doctrine-orm-module": "^4.1|~5.1|~6.1",
"doctrine/doctrine-module": "^4.2|~5.1|~6.0",
"doctrine/doctrine-module": "^4.2|~5.1|~6.0|~6.1",
"doctrine/orm": "^2.10",
"paragonie/halite": "^4.7| ^5.0",
"ramsey/uuid": "^4",
Expand Down
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 41c8027

Please sign in to comment.