eerrrrrr
CI - Build Tonehaus Docker image / tonehaus-ci-build (push) Successful in 1m57s

This commit is contained in:
boris committed 2025-11-27 23:42:17 +00:00
1 parent 054e970df9
commit 1c98a634c3
50 files changed
+1666 -593

No files matched your search

+5 -1
View File
@@ -34,7 +34,11 @@ class SettingRepository extends ServiceEntityRepository
public function setValue(string $name, ?string $value): void
{
$em = $this->getEntityManager();
$setting = $this->findOneBy(['name' => $name]) ?? (new Setting())->setName($name);
$setting = $this->findOneBy(['name' => $name]);
if ($setting === null) {
$setting = new Setting();
$setting->setName($name);
}
$setting->setValue($value);
$em->persist($setting);
$em->flush();