src/Entity/TransfertDetail.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * TransfertDetail.php
  4.  * Created by Stéphane Brun
  5.  * Date: 2018-09-19 at 15:11
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity()
  12.  * @ORM\Table(name="transfert_detail")
  13.  */
  14. class TransfertDetail
  15. {
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(name="quantite", type="integer")
  24.      */
  25.     protected $quantite 0;
  26.     /**
  27.      * has one Titre
  28.      *
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Titre")
  30.      * @ORM\JoinColumn(name="titre_id", referencedColumnName="TISBN")
  31.      */
  32.     protected $produit;
  33.     /**
  34.      * has one Transfert
  35.      *
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\Transfert", inversedBy="details")
  37.      * @ORM\JoinColumn(name="transfert_id", referencedColumnName="id")
  38.      */
  39.     protected $transfert;
  40.     /**
  41.      * @return mixed
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * @return mixed
  49.      */
  50.     public function getTransfert()
  51.     {
  52.         return $this->transfert;
  53.     }
  54.     /**
  55.      * @param Transfert $transfert
  56.      * @return TransfertDetail
  57.      */
  58.     public function setTransfert(Transfert $transfert)
  59.     {
  60.         $this->transfert $transfert;
  61.         return $this;
  62.     }
  63.     /**
  64.      * @return mixed
  65.      */
  66.     public function getQuantite()
  67.     {
  68.         return $this->quantite;
  69.     }
  70.     /**
  71.      * @param mixed $quantite
  72.      * @return TransfertDetail
  73.      */
  74.     public function setQuantite($quantite)
  75.     {
  76.         $this->quantite $quantite;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return mixed
  81.      */
  82.     public function getProduit()
  83.     {
  84.         return $this->produit;
  85.     }
  86.     /**
  87.      * @param titre $produit
  88.      * @return TransfertDetail
  89.      */
  90.     public function setProduit(Titre $produit)
  91.     {
  92.         $this->produit $produit;
  93.         return $this;
  94.     }
  95. }