merge_email_verifier #3
|
@ -23,7 +23,7 @@ class PagesRepository extends ServiceEntityRepository
|
||||||
|
|
||||||
public function add(Pages $entity, bool $flush = true): void
|
public function add(Pages $entity, bool $flush = true): void
|
||||||
{
|
{
|
||||||
$this->_em->persist($entity);
|
$this->_em->persist(entity: $entity);
|
||||||
if ($flush) {
|
if ($flush) {
|
||||||
$this->_em->flush();
|
$this->_em->flush();
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ class PagesRepository extends ServiceEntityRepository
|
||||||
|
|
||||||
public function remove(Pages $entity, bool $flush = true): void
|
public function remove(Pages $entity, bool $flush = true): void
|
||||||
{
|
{
|
||||||
$this->_em->remove($entity);
|
$this->_em->remove(entity: $entity);
|
||||||
if ($flush) {
|
if ($flush) {
|
||||||
$this->_em->flush();
|
$this->_em->flush();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue