<?php
/**
* Created by PhpStorm.
* User: fmartinbrossat
* Date: 2018-09-14
* Time: 08:55
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ImprimantesUsersRepository")
* @ORM\Table(name="imprimantes_users")
*/
class ImprimantesUsers
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* Many ImprimantesUsers have One User.
* @ORM\ManyToOne(targetEntity="SysUsers", inversedBy="imprimantesUsers")
* @ORM\JoinColumn(name="user", referencedColumnName="id")
*/
protected $user;
/**
* One imprimantesUsers has One Imprimante.
* @ORM\ManyToOne(targetEntity="Imprimante", inversedBy="imprimantesUsers")
* @ORM\JoinColumn(name="imprimante", referencedColumnName="id")
*/
protected $imprimante;
/**
* @ORM\Column(name="default_printer", type="boolean")
*/
protected $default;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return mixed
*/
public function getImprimante()
{
return $this->imprimante;
}
/**
* @param mixed $imprimante
*/
public function setImprimante($imprimante)
{
$this->imprimante = $imprimante;
}
/**
* @return mixed
*/
public function getDefault()
{
return $this->default;
}
/**
* @param mixed $default
*/
public function setDefault($default)
{
$this->default = $default;
}
}