#37 add external link to foodvendor
All checks were successful
/ ls (pull_request) Successful in 38s
/ ls (push) Successful in 37s
/ ls (release) Successful in 25s

This commit is contained in:
lubiana 2024-08-16 21:52:53 +02:00
parent 34171d6c2b
commit 56206acd8a
No known key found for this signature in database
6 changed files with 79 additions and 4 deletions

View file

@ -28,6 +28,9 @@ class FoodVendor
#[ORM\OneToMany(targetEntity: MenuItem::class, mappedBy: 'foodVendor', orphanRemoval: true)]
private Collection $menuItems;
#[ORM\Column(length: 255, nullable: true)]
private string|null $menuLink = null;
public function __construct(
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
@ -116,4 +119,16 @@ class FoodVendor
return $this;
}
public function getMenuLink(): string|null
{
return $this->menuLink;
}
public function setMenuLink(string|null $menuLink): static
{
$this->menuLink = $menuLink;
return $this;
}
}

View file

@ -15,6 +15,7 @@ final class FoodVendorType extends AbstractType
{
$builder
->add('name')
->add('menuLink')
;
}