src/AppBundle/Entity/Agrupador.php line 13
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Agrupador
*
* @ORM\Table(name="agrupador")
* @ORM\Entity(repositoryClass="AppBundle\Repository\AgrupadorRepository")
*/
class Agrupador
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nombre", type="string", length=255)
*/
private $nombre;
/**
* @ORM\ManyToOne(targetEntity="Caracteristica", inversedBy="agrupadores")
* @ORM\JoinColumn(name="caracteristica_id", referencedColumnName="id")
*/
protected $caracteristica;
/**
* @ORM\OneToMany(targetEntity="CaracteristicaValor", mappedBy="agrupador")
*/
protected $caracteristicasValor;
/**
* Constructor.
*/
public function __construct()
{
$this->caracteristicasValor = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set nombre
*
* @param string $nombre
*
* @return Agrupador
*/
public function setNombre($nombre)
{
$this->nombre = $nombre;
return $this;
}
/**
* Get nombre
*
* @return string
*/
public function getNombre()
{
return $this->nombre;
}
/**
* Set caracteristica
*
* @param \AppBundle\Entity\Caracteristica $caracteristica
*
* @return Agrupador
*/
public function setCaracteristica(\AppBundle\Entity\Caracteristica $caracteristica = null)
{
$this->caracteristica = $caracteristica;
return $this;
}
/**
* Get caracteristica
*
* @return \AppBundle\Entity\Caracteristica
*/
public function getCaracteristica()
{
return $this->caracteristica;
}
/**
* Get all CaracteristicasValor
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCaracteristicasValor(){
return $this->caracteristicasValor;
}
}