make orderitem menuitem non nullable

This commit is contained in:
lubiana 2024-06-26 20:31:27 +02:00
parent 45029e0a4c
commit 5ff1832dee
No known key found for this signature in database
4 changed files with 56 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class OrderItem
private FoodOrder|null $foodOrder = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: true)]
#[ORM\JoinColumn(nullable: false)]
private MenuItem|null $menuItem = null;
public function getId(): Ulid|null