<?phpnamespace App\Entity\Projets;use App\Entity\Articles\Article;use App\Entity\GestionComerciale\Commande;use App\Entity\Kanban\Fiche;use App\Entity\Notes\Note;use App\Entity\Utilisateur\Contact;use App\Entity\Utilisateur\Utilisateur;use DateTime;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping\Index;/** * ProjetUtilisateur * * @ORM\Table(name="projet__projet_utilisateur") * @ORM\Entity(repositoryClass="App\Repository\Projets\ProjetUtilisateurRepository") */class ProjetUtilisateur{ /** * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="projetsUtilisateur") * @ORM\JoinColumn(nullable=true) */ private $utilisateur; /** * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Contact") * @ORM\JoinColumn(nullable=true) */ private $contact; /** * @ORM\ManyToOne(targetEntity="App\Entity\Projets\Projet") * @ORM\JoinColumn(nullable=true) */ private $projet; /** * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande") * @ORM\JoinColumn(nullable=true) */ private $commande; /** * @ORM\Column(name="date", type="datetime", nullable=true) */ private $date; /** * @ORM\ManyToOne(targetEntity="App\Entity\Kanban\Fiche", inversedBy="projetUtilisateurs") * @ORM\JoinColumn(nullable=true) */ private $fiche; /** * @ORM\ManyToOne(targetEntity="App\Entity\Notes\Note") * @ORM\JoinColumn(nullable=true) */ private $note; /** * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article") * @ORM\JoinColumn(nullable=true) */ private $role; public function __construct() { $this->date = new Datetime(); } public function getId(): int { return $this->id; } public function setDate(?DateTime $date): ProjetUtilisateur { $this->date = $date; return $this; } public function getDate(): ?DateTime { return $this->date; } public function setUtilisateur(?Utilisateur $utilisateur): ProjetUtilisateur { $this->utilisateur = $utilisateur; return $this; } public function getUtilisateur(): ?Utilisateur { return $this->utilisateur; } public function setProjet(?Projet $projet): ProjetUtilisateur { $this->projet = $projet; return $this; } public function getProjet(): ?Projet { return $this->projet; } public function setContact(?Contact $contact): ProjetUtilisateur { $this->contact = $contact; return $this; } public function getContact(): ?Contact { return $this->contact; } public function setCommande(?Commande $commande): ProjetUtilisateur { $this->commande = $commande; return $this; } public function getCommande(): ?Commande { return $this->commande; } public function setFiche(?Fiche $fiche): ProjetUtilisateur { $this->fiche = $fiche; return $this; } public function getFiche(): ?Fiche { return $this->fiche; } public function setNote(?Note $note): ProjetUtilisateur { $this->note = $note; return $this; } public function getNote(): ?Note { return $this->note; } public function getRole(): ?Note { return $this->role; } public function setRole(?Article $role): ProjetUtilisateur { $this->role = $role; return $this; }}