diff --git a/src/Repository/PagesRepository.php b/src/Repository/PagesRepository.php index 933342f..db741c6 100644 --- a/src/Repository/PagesRepository.php +++ b/src/Repository/PagesRepository.php @@ -23,7 +23,7 @@ class PagesRepository extends ServiceEntityRepository public function add(Pages $entity, bool $flush = true): void { - $this->_em->persist($entity); + $this->_em->persist(entity: $entity); if ($flush) { $this->_em->flush(); } @@ -31,7 +31,7 @@ class PagesRepository extends ServiceEntityRepository public function remove(Pages $entity, bool $flush = true): void { - $this->_em->remove($entity); + $this->_em->remove(entity: $entity); if ($flush) { $this->_em->flush(); }