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