<?php
namespace App\Entity;
use App\Repository\FormSectionVisaRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\MaxDepth;
use Symfony\Component\Serializer\Annotation\Ignore;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=FormSectionVisaRepository::class)
*/
class FormSectionVisa
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=FormSection::class, inversedBy="visas")
* @MaxDepth(1)
*/
private $section;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $entiteNom;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $entiteId;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="sectionVisas", fetch="EAGER")
* @MaxDepth(1)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getSection(): ?FormSection
{
return $this->section;
}
public function setSection(?FormSection $section): self
{
$this->section = $section;
return $this;
}
public function getEntiteNom(): ?string
{
return $this->entiteNom;
}
public function setEntiteNom(?string $entiteNom): self
{
$this->entiteNom = $entiteNom;
return $this;
}
public function getEntiteId(): ?int
{
return $this->entiteId;
}
public function setEntiteId(?int $entiteId): self
{
$this->entiteId = $entiteId;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}