fix: report an unresolvable hotel instead of failing on it

This commit is contained in:
fromme committed 2026-09-29 15:27:44 +02:00
1 parent 72be779038
commit 2329fe17a0
6 files changed
+317 -7

No files matched your search

+2
View File
@@ -3,6 +3,7 @@
namespace App\Model;
use App\Entity\Destination;
use App\Validator\Constraints as AppAssert;
use Symfony\Component\Validator\Constraints as Assert;
class DestinationDto
@@ -36,6 +37,7 @@ class DestinationDto
private ?\DateTimeImmutable $dateTo = null;
#[Assert\NotBlank(message: 'Bitte angeben')]
#[AppAssert\ResolvableHotel]
private ?string $hotelBusProId = null;
private ?string $costUnit = null;