Sfoglia il codice sorgente

Doctrine Fixtures

feature/ticket
Fab 3 anni fa
parent
commit
8d93fbcb9c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      Resolver/SectionResolver.php

+ 1
- 1
Resolver/SectionResolver.php Vedi File

@@ -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');
}

Loading…
Annulla
Salva