Toevoeging van meer responses op messages

This commit is contained in:
Frank
2026-01-05 23:37:36 +01:00
parent 376ed3f592
commit 812dc06988
10 changed files with 340 additions and 22 deletions
@@ -2,7 +2,9 @@
namespace App\Game\Repository;
use App\Game\Entity\Game;
use App\Game\Entity\GameSetting;
use App\Game\Enum\GameSettingType;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
@@ -15,4 +17,12 @@ class GameSettingRepository extends ServiceEntityRepository
{
parent::__construct($registry, GameSetting::class);
}
public function getSetting(Game $game, GameSettingType $name): ?GameSetting
{
return $this->findOneBy([
'game' => $game,
'name' => $name,
]);
}
}