ソースを参照

add getValue

develop
Charly 3年前
コミット
84cc243a36
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      EventSubscriber/SiteSettingEventSubscriber.php

+ 2
- 1
EventSubscriber/SiteSettingEventSubscriber.php ファイルの表示

@@ -81,7 +81,8 @@ class SiteSettingEventSubscriber implements EventSubscriberInterface

$this->em->persist($entitySetting);
} else {
if ($entitySetting->getValue() === null
$methodGetValue = 'get' . ucfirst($setting['field']);
if ($entitySetting->$methodGetValue() === null
&& isset($setting['default'])
&& $setting['default'] !== null) {
$methodSetValue = 'set' . ucfirst($setting['field']);

読み込み中…
キャンセル
保存