<?php
namespace App\Entity;
use App\Repository\ImageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ImageRepository::class)]
class Image
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'images')]
#[ORM\JoinColumn(nullable: false)]
private ?Galerie $galerie = null;
#[ORM\Column(length: 255)]
private ?string $image = 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 getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
}