<?php
/**
* Collections.php
* Created by Stéphane Brun
* Date: 2018-03-29 at 16:34
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\MaxDepth;
/**
* @ORM\Entity
* @ORM\Table(name="tcollections")
*/
class Collections
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="cnom", type="string", length=250)
*/
protected $nom;
/**
* @ORM\Column(name="cselect", type="integer")
*/
protected $select;
/**
* has one Company
*
* @ORM\ManyToOne(targetEntity="App\Entity\Company", inversedBy="collections", cascade={"persist"})
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
* @MaxDepth(1)
*/
protected $company;
/**
* @return mixed
*/
public function getCompany()
{
return $this->company;
}
/**
* @param Company $company
*/
public function setCompany(Company $company)
{
$this->company = $company;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
/**
* @return mixed
*/
public function getSelect()
{
return $this->select;
}
/**
* @param mixed $select
*/
public function setSelect($select)
{
$this->select = $select;
}
}