minor code improvements
This commit is contained in:
parent
1faafbc970
commit
fec6ae5db5
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue