src/Entity/Collections.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Collections.php
  4.  * Created by Stéphane Brun
  5.  * Date: 2018-03-29 at 16:34
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Component\Serializer\Annotation\MaxDepth;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="tcollections")
  13.  */
  14. class Collections
  15. {
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(name="cnom", type="string", length=250)
  24.      */
  25.     protected $nom;
  26.     /**
  27.      * @ORM\Column(name="cselect", type="integer")
  28.      */
  29.     protected $select;
  30.     /**
  31.      * has one Company
  32.      *
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Company", inversedBy="collections", cascade={"persist"})
  34.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
  35.      * @MaxDepth(1)
  36.      */
  37.     protected $company;
  38.     /**
  39.      * @return mixed
  40.      */
  41.     public function getCompany()
  42.     {
  43.         return $this->company;
  44.     }
  45.     /**
  46.      * @param Company $company
  47.      */
  48.     public function setCompany(Company $company)
  49.     {
  50.         $this->company $company;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * @return mixed
  61.      */
  62.     public function setId($id)
  63.     {
  64.         $this->id $id;
  65.     }
  66.     /**
  67.      * @return mixed
  68.      */
  69.     public function getNom()
  70.     {
  71.         return $this->nom;
  72.     }
  73.     /**
  74.      * @param mixed $nom
  75.      */
  76.     public function setNom($nom)
  77.     {
  78.         $this->nom $nom;
  79.     }
  80.     /**
  81.      * @return mixed
  82.      */
  83.     public function getSelect()
  84.     {
  85.         return $this->select;
  86.     }
  87.     /**
  88.      * @param mixed $select
  89.      */
  90.     public function setSelect($select)
  91.     {
  92.         $this->select $select;
  93.     }
  94. }