Parcourir la source

Doctrine Fixtures

feature/ticket
Fab il y a 3 ans
Parent
révision
8d93fbcb9c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      Resolver/SectionResolver.php

+ 1
- 1
Resolver/SectionResolver.php Voir le fichier

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

Chargement…
Annuler
Enregistrer