TecnicasPlanificacion.php 1.38 KB
<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TecnicasPlanificacion
 *
 * @ORM\Table(name="tecnicas_planficacion", uniqueConstraints={@ORM\UniqueConstraint(name="uq_tecnica", columns={"nombre"})})
 * @ORM\Entity
 */
class TecnicasPlanificacion
{
    /**
     * @var string
     *
     * @ORM\Column(name="nombre", type="string", length=100, nullable=false, options={"comment" = "Nombre del municipio"})
     */
    private $nombre;
    

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del municipio"})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1)
     */
    private $id;

   

    /**
     * Set nombre
     *
     * @param string $nombre
     * @return TecnicasPlanificacion
     */
    public function setNombre($nombre)
    {
        $this->nombre = $nombre;

        return $this;
    }

    /**
     * Get nombre
     *
     * @return string 
     */
    public function getNombre()
    {
        return $this->nombre;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    
    /**
     * @return string
     */
    public function __toString() {
        return $this->getNombre();
    }
}