<?php
namespace App\Entity;
use App\Repository\TbMunicipioRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* TbMunicipio
*
* @ORM\Table(name="tb_municipio", indexes={@ORM\Index(name="fk_tb_municipio_strid_dpto_idx", columns={"strid_dpto"}), @ORM\Index(name="fk_tb_municipio_strid_pais_idx", columns={"strid_pais"}), @ORM\Index(name="bool_estado", columns={"bool_estado"})})
* @ORM\Entity(repositoryClass=TbMunicipioRepository::class)
*/
class TbMunicipio
{
/**
* @var string
*
* @ORM\Column(name="strid_mpio", type="string", length=6, nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
private $stridMpio;
/**
* @var string
*
* @ORM\Column(name="str_nom_mpio", type="string", length=100, nullable=false)
*/
private $strNomMpio;
/**
* @var bool|null
*
* @ORM\Column(name="bool_estado", type="boolean", nullable=true, options={"default"="1","comment"="Estado del registro 0: Inactivo ; 1: Activo"})
*/
private $boolEstado = true;
/**
* @var \TbDepartamento
*
* @ORM\OneToOne(targetEntity="TbDepartamento")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="strid_dpto", referencedColumnName="strid_dpto")
* })
*/
private $stridDpto;
/**
* @var \TbPais
*
* @ORM\OneToOne(targetEntity="TbPais")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="strid_pais", referencedColumnName="strid_pais")
* })
*/
private $stridPais;
public function getStridMpio(): ?string
{
return $this->stridMpio;
}
public function getStrNomMpio(): ?string
{
return $this->strNomMpio;
}
public function setStrNomMpio(string $strNomMpio): self
{
$this->strNomMpio = $strNomMpio;
return $this;
}
public function getBoolEstado(): ?bool
{
return $this->boolEstado;
}
public function setBoolEstado(?bool $boolEstado): self
{
$this->boolEstado = $boolEstado;
return $this;
}
public function getStridDpto(): ?TbDepartamento
{
return $this->stridDpto;
}
public function setStridDpto(?TbDepartamento $stridDpto): self
{
$this->stridDpto = $stridDpto;
return $this;
}
public function getStridPais(): ?TbPais
{
return $this->stridPais;
}
public function setStridPais(?TbPais $stridPais): self
{
$this->stridPais = $stridPais;
return $this;
}
}