← Back
Editing: Commentaire.php
<?php namespace App\Entity; use App\Repository\CommentaireRepository; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: CommentaireRepository::class)] class Commentaire { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\ManyToOne(targetEntity: 'App\Entity\Agency', inversedBy: 'commentaires')] private Agency $agency; #[ORM\Column(type: 'string', length: 255)] private string $libelle; #[ORM\ManyToOne(targetEntity: 'App\Entity\Item')] private Item $item; public function getId(): ?int { return $this->id; } public function getAgency(): ?Agency { return $this->agency; } public function setAgency(Agency $agency): self { $this->agency = $agency; return $this; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(string $libelle): self { $this->libelle = $libelle; return $this; } public function getItem(): ?Item { return $this->item; } public function setItem(Item $item): self { $this->item = $item; return $this; } }
Save File
Cancel