<?php
namespace App\Entity\Gestiform\Formations\Entreprise;
use App\Entity\AbstractEntity;
use App\Entity\Gestiform\Users\Formateur;
use App\Repository\Gestiform\Formations\Entreprise\FormateurEntrepriseRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FormateurEntrepriseRepository::class)
*/
class FormateurEntreprise extends AbstractEntity
{
/**
* @ORM\ManyToOne(targetEntity=Formateur::class, inversedBy="formateurEntreprises")
*/
private ?Formateur $formateur = null;
/**
* @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="formateurEntreprises", cascade={"persist"})
*/
private ?Entreprise $entreprise = null;
/**
* @ORM\ManyToOne(targetEntity=Contact::class, cascade={"persist"})
*/
private ?Contact $contact = null;
public function getFormateur(): ?Formateur
{
return $this->formateur;
}
public function setFormateur(?Formateur $formateur): self
{
$this->formateur = $formateur;
return $this;
}
public function getEntreprise(): ?Entreprise
{
return $this->entreprise;
}
public function setEntreprise(?Entreprise $entreprise): self
{
$this->entreprise = $entreprise;
return $this;
}
public function getContact(): ?Contact
{
return $this->contact;
}
public function setContact(?Contact $contact): self
{
$this->contact = $contact;
return $this;
}
}