src/Entity/ModeleCl.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModeleClRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ModeleClRepository::class)
  7.  */
  8. class ModeleCl
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=MarqueCl::class, inversedBy="modeleCls", cascade={"persist"})
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $code_marque_cl;
  21.     /**
  22.      * @ORM\Column(type="string", length=50)
  23.      */
  24.     private $mdl_libele;
  25.     /**
  26.      * @ORM\Column(type="integer", nullable=true)
  27.      */
  28.     private $mdl_ordre;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getCodeMarqueClId(): ?MarqueCl
  34.     {
  35.         return $this->code_marque_cl;
  36.     }
  37.     public function setCodeMarqueClId(?MarqueCl $code_marque_cl): self
  38.     {
  39.         $this->code_marque_cl $code_marque_cl;
  40.         return $this;
  41.     }
  42.     public function getMdlLibele(): ?string
  43.     {
  44.         return $this->mdl_libele;
  45.     }
  46.     public function setMdlLibele(string $mdl_libele): self
  47.     {
  48.         $this->mdl_libele $mdl_libele;
  49.         return $this;
  50.     }
  51.     public function getMdlOrdre(): ?int
  52.     {
  53.         return $this->mdl_ordre;
  54.     }
  55.     public function setMdlOrdre(?int $mdl_ordre): self
  56.     {
  57.         $this->mdl_ordre $mdl_ordre;
  58.         return $this;
  59.     }
  60. }