Commit 9194791c authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

STA-965 | Поправил сущность Restaurant

parent 1470e5cb
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -98,6 +98,10 @@ class Restaurant
    #[ORM\JoinColumn(nullable: false)]
    private ?Seo $seo = null;

    #[ORM\OneToOne(cascade: ['persist', 'remove'])]
    #[ORM\JoinColumn(nullable: false)]
    private ?File $file = null;

    public function __construct()
    {
        $this->kitchen = new ArrayCollection();
@@ -424,4 +428,16 @@ class Restaurant

        return $this;
    }

    public function getFile(): ?File
    {
        return $this->file;
    }

    public function setFile(File $file): static
    {
        $this->file = $file;

        return $this;
    }
}