fix: report an unresolvable hotel instead of failing on it
This commit is contained in:
1 parent
72be779038
commit
2329fe17a0
6 files changed
+317
-7
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user