src/Entity/Imagesavantage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ImagesavantageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ImagesavantageRepository::class)
  7.  */
  8. class Imagesavantage
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Avantage::class, inversedBy="imagesavantages")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $avantages;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getName(): ?string
  30.     {
  31.         return $this->name;
  32.     }
  33.     public function setName(?string $name): self
  34.     {
  35.         $this->name $name;
  36.         return $this;
  37.     }
  38.     public function getAvantages(): ?Avantage
  39.     {
  40.         return $this->avantages;
  41.     }
  42.     public function setAvantages(?Avantage $avantages): self
  43.     {
  44.         $this->avantages $avantages;
  45.         return $this;
  46.     }
  47. }