src/Entity/Sujets.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * Sujets.php
  4.  * Created by Stéphane Brun
  5.  * Date: 2018-03-29 at 13:28
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="TSujets")
  12.  */
  13. class Sujets
  14. {
  15.     /**
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     protected $id;
  21.     /**
  22.      * @ORM\Column(name="SSujet", type="string", length=255)
  23.      */
  24.     protected $nom;
  25.     /**
  26.      * has one Company
  27.      *
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  29.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
  30.      */
  31.     protected $company;
  32.     /**
  33.      * @return mixed
  34.      */
  35.     public function getCompany()
  36.     {
  37.         return $this->company;
  38.     }
  39.     /**
  40.      * @param Company $company
  41.      */
  42.     public function setCompany(Company $company)
  43.     {
  44.         $this->company $company;
  45.     }
  46.     /**
  47.      * @return mixed
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * @return mixed
  55.      */
  56.     public function getNom()
  57.     {
  58.         return $this->nom;
  59.     }
  60.     /**
  61.      * @param mixed $nom
  62.      */
  63.     public function setNom($nom)
  64.     {
  65.         $this->nom $nom;
  66.     }
  67. }