src/AppBundle/Entity/Area.php line 15
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Area
*
* @ORM\Table(name="area")
* @ORM\Entity(repositoryClass="AppBundle\Repository\AreaRepository")
* @ORM\HasLifecycleCallbacks()
*/
class Area
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nombre", type="string")
*/
private $nombre;
/**
* @ORM\OneToMany(targetEntity="Etiqueta", mappedBy="area")
*/
protected $etiquetas;
public function __construct() {
$this->etiquetas = new ArrayCollection();
}
public function getId() {
return $this->id;
}
/**
* Set nombre
*
* @return Area
*/
public function setNombre($nombre)
{
$this->nombre = $nombre;
return $this;
}
/**
* Get nombre
*
* @return string
*/
public function getNombre()
{
return $this->nombre;
}
}