<?php
namespace App\Entity;
use App\Repository\VideoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VideoRepository::class)]
class Video
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $video = null;
#[ORM\ManyToOne(inversedBy: 'videos')]
#[ORM\JoinColumn(nullable: false)]
private ?Galerie $galerie = null;
public function getId(): ?int
{
return $this->id;
}
public function getGalerie(): ?Galerie
{
return $this->galerie;
}
public function setGalerie(?Galerie $galerie): self
{
$this->galerie = $galerie;
return $this;
}
public function getVideo(): ?string
{
return $this->video;
}
public function setVideo(string $video): self
{
$this->video = $video;
return $this;
}
}