Browse Source

Doctrine Fixtures

feature/ticket
Fab 3 years ago
parent
commit
8d93fbcb9c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Resolver/SectionResolver.php

+ 1
- 1
Resolver/SectionResolver.php View File

} }


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

Loading…
Cancel
Save