瀏覽代碼

Doctrine Fixtures

feature/ticket
Fab 3 年之前
父節點
當前提交
8d93fbcb9c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      Resolver/SectionResolver.php

+ 1
- 1
Resolver/SectionResolver.php 查看文件

@@ -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…
取消
儲存