src/Entity/ImprimantesUsers.php line 17

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: fmartinbrossat
  5.  * Date: 2018-09-14
  6.  * Time: 08:55
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity(repositoryClass="App\Repository\ImprimantesUsersRepository")
  12.  * @ORM\Table(name="imprimantes_users")
  13.  */
  14. class ImprimantesUsers
  15. {
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     protected $id;
  22.     /**
  23.      * Many ImprimantesUsers have One User.
  24.      * @ORM\ManyToOne(targetEntity="SysUsers", inversedBy="imprimantesUsers")
  25.      * @ORM\JoinColumn(name="user", referencedColumnName="id")
  26.      */
  27.     protected $user;
  28.     /**
  29.      * One imprimantesUsers has One Imprimante.
  30.      * @ORM\ManyToOne(targetEntity="Imprimante", inversedBy="imprimantesUsers")
  31.      * @ORM\JoinColumn(name="imprimante", referencedColumnName="id")
  32.      */
  33.     protected $imprimante;
  34.     /**
  35.      * @ORM\Column(name="default_printer", type="boolean")
  36.      */
  37.     protected $default;
  38.     /**
  39.      * @return mixed
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * @param mixed $id
  47.      */
  48.     public function setId($id)
  49.     {
  50.         $this->id $id;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getUser()
  56.     {
  57.         return $this->user;
  58.     }
  59.     /**
  60.      * @param mixed $user
  61.      */
  62.     public function setUser($user)
  63.     {
  64.         $this->user $user;
  65.     }
  66.     /**
  67.      * @return mixed
  68.      */
  69.     public function getImprimante()
  70.     {
  71.         return $this->imprimante;
  72.     }
  73.     /**
  74.      * @param mixed $imprimante
  75.      */
  76.     public function setImprimante($imprimante)
  77.     {
  78.         $this->imprimante $imprimante;
  79.     }
  80.     /**
  81.      * @return mixed
  82.      */
  83.     public function getDefault()
  84.     {
  85.         return $this->default;
  86.     }
  87.     /**
  88.      * @param mixed $default
  89.      */
  90.     public function setDefault($default)
  91.     {
  92.         $this->default $default;
  93.     }
  94. }