<?php
namespace App\Entity;
use App\Repository\TbDepartamentoRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* TbDepartamento
*
* @ORM\Table(name="tb_departamento", indexes={@ORM\Index(name="fk_tb_departamento_strid_pais_idx", columns={"strid_pais"}), @ORM\Index(name="bool_estado", columns={"bool_estado"})})
* @ORM\Entity(repositoryClass=TbDepartamentoRepository::class)
*/
class TbDepartamento
{
/**
* @var string
*
* @ORM\Column(name="strid_dpto", type="string", length=6, nullable=false, options={"comment"="Clave principal"})
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
private $stridDpto;
/**
* @var string
*
* @ORM\Column(name="str_nom_depto", type="string", length=100, nullable=false)
*/
private $strNomDepto;
/**
* @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 \TbPais
*
* @ORM\OneToOne(targetEntity="TbPais")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="strid_pais", referencedColumnName="strid_pais")
* })
*/
private $stridPais;
public function getStridDpto(): ?string
{
return $this->stridDpto;
}
public function getStrNomDepto(): ?string
{
return $this->strNomDepto;
}
public function setStrNomDepto(string $strNomDepto): self
{
$this->strNomDepto = $strNomDepto;
return $this;
}
public function getBoolEstado(): ?bool
{
return $this->boolEstado;
}
public function setBoolEstado(?bool $boolEstado): self
{
$this->boolEstado = $boolEstado;
return $this;
}
public function getStridPais(): ?TbPais
{
return $this->stridPais;
}
public function setStridPais(?TbPais $stridPais): self
{
$this->stridPais = $stridPais;
return $this;
}
}