Explorar el Código

Doctrine Fixtures

feature/ticket
Fab hace 3 años
padre
commit
8d93fbcb9c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      Resolver/SectionResolver.php

+ 1
- 1
Resolver/SectionResolver.php Ver fichero

@@ -34,7 +34,7 @@ class SectionResolver
}

if ($currentAdminSection === null) {
$currentAdminSection = $this->sectionRepository->findOneBy(array('isDefault' => true));
$currentAdminSection = $this->em->getRepository(SectionInterface::class)->findOneBy(array('isDefault' => true));
if ($currentAdminSection === null) {
throw new \ErrorException('Aucune section par défaut définie pour ce merchant');
}

Cargando…
Cancelar
Guardar