src/Entity/TerSedeEmpresa.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TerSedeEmpresaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTerSedeEmpresaRepository::class)]
  8. class TerSedeEmpresa
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length100)]
  15.     private ?string $nombre null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $comportamiento null;
  18.     #[ORM\OneToMany(mappedBy'sede'targetEntityGHVacante::class)]
  19.     private Collection $vacante;
  20.     #[ORM\OneToMany(mappedBy'sede'targetEntityGHCambioContrato::class)]
  21.     private Collection $cambioContrato;
  22.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFSolicitudSuministro::class)]
  23.     private Collection $solicitudSuministro;
  24.     #[ORM\OneToMany(mappedBy'sede'targetEntityTerPersona::class)]
  25.     private Collection $persona;
  26.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFFUID::class)]
  27.     private Collection $FUID;
  28.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFInventarioDocumentalComex::class)]
  29.     private Collection $inventarioDocumentalComex;
  30.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFInventarioDocumentalFinanzas::class)]
  31.     private Collection $inventarioDocumentalFinanzas;
  32.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFInventarioDocumentalGesHum::class)]
  33.     private Collection $inventarioDocumentalGesHum;
  34.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFInventarioDocumentalSST::class)]
  35.     private Collection $inventarioDocumentalSST;
  36.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFCambioCustodiaDocumento::class)]
  37.     private Collection $cambioCustodiaDocumento;
  38.     #[ORM\OneToMany(mappedBy'sede'targetEntityJurProceso::class)]
  39.     private Collection $procesosJuridico;
  40.     #[ORM\ManyToMany(targetEntityGHPerfilCargo::class, mappedBy'sede')]
  41.     private Collection $perfilCargos;
  42.     #[ORM\ManyToMany(targetEntityTerEmpresa::class, inversedBy'sedeEmpresa')]
  43.     private Collection $empresaFilial;
  44.     #[ORM\OneToMany(mappedBy'sede'targetEntityGHMatrizEntrenamiento::class)]
  45.     private Collection $matrizEntrenamientos;
  46.     #[ORM\OneToMany(mappedBy'sucursal'targetEntitySegControlAcceso::class)]
  47.     private Collection $controlAcceso;
  48.     #[ORM\OneToMany(mappedBy'sede'targetEntityTerAreaSede::class)]
  49.     private Collection $areaSede;
  50.     #[ORM\OneToMany(mappedBy'sede'targetEntitySegIngresoVisitante::class)]
  51.     private Collection $sedeUsuarioIngresoVisitante;
  52.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFPrecintoSolicitud::class)]
  53.     private Collection $precintoSolicitud;
  54.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFPrecintoAsignacion::class)]
  55.     private Collection $precintoAsignacion;
  56.     #[ORM\OneToMany(mappedBy'sede'targetEntityRFOrdenCompra::class)]
  57.     private Collection $ordenCompra;
  58.     #[ORM\OneToMany(mappedBy'sede'targetEntityGHCapacitacionActividad::class)]
  59.     private Collection $capacitacionActividades;
  60.     #[ORM\ManyToMany(targetEntityGHCapacitacionActividad::class, mappedBy'sucursales')]
  61.     private Collection $gHCapacitacionActividads;
  62.     #[ORM\OneToMany(mappedBy'sucursal'targetEntityGHGrupoTrabajo::class)]
  63.     private Collection $gHGrupoTrabajos;
  64.     public function __construct()
  65.     {
  66.         $this->vacante = new ArrayCollection();
  67.         $this->cambioContrato = new ArrayCollection();
  68.         $this->persona = new ArrayCollection();
  69.         $this->solicitudSuministro = new ArrayCollection();
  70.         $this->FUID = new ArrayCollection();
  71.         $this->inventarioDocumentalComex = new ArrayCollection();
  72.         $this->inventarioDocumentalFinanzas = new ArrayCollection();
  73.         $this->inventarioDocumentalGesHum = new ArrayCollection();
  74.         $this->inventarioDocumentalSST = new ArrayCollection();
  75.         $this->cambioCustodiaDocumento = new ArrayCollection();
  76.         $this->procesosJuridico = new ArrayCollection();
  77.         $this->perfilCargos = new ArrayCollection();
  78.         $this->empresaFilial = new ArrayCollection();
  79.         $this->matrizEntrenamientos = new ArrayCollection();
  80.         $this->controlAcceso = new ArrayCollection();
  81.         $this->areaSede = new ArrayCollection();
  82.         $this->sedeUsuarioIngresoVisitante = new ArrayCollection();
  83.         $this->precintoSolicitud = new ArrayCollection();
  84.         $this->precintoAsignacion = new ArrayCollection();
  85.         $this->ordenCompra = new ArrayCollection();
  86.         $this->capacitacionActividades = new ArrayCollection();
  87.         $this->gHCapacitacionActividads = new ArrayCollection();
  88.         $this->gHGrupoTrabajos = new ArrayCollection();
  89.     }
  90.     
  91.     public function __toString() {
  92.         return $this->getNombre();
  93.     }
  94.     public function getId(): ?int
  95.     {
  96.         return $this->id;
  97.     }
  98.     public function getNombre(): ?string
  99.     {
  100.         return $this->nombre;
  101.     }
  102.     public function setNombre(string $nombre): static
  103.     {
  104.         $this->nombre $nombre;
  105.         return $this;
  106.     }
  107.     public function getComportamiento(): ?string
  108.     {
  109.         return $this->comportamiento;
  110.     }
  111.     public function setComportamiento(string $comportamiento): static
  112.     {
  113.         $this->comportamiento $comportamiento;
  114.         return $this;
  115.     }
  116.     /**
  117.      * @return Collection<int, GHVacante>
  118.      */
  119.     public function getVacante(): Collection
  120.     {
  121.         return $this->vacante;
  122.     }
  123.     public function addVacante(GHVacante $vacante): static
  124.     {
  125.         if (!$this->vacante->contains($vacante)) {
  126.             $this->vacante->add($vacante);
  127.             $vacante->setSede($this);
  128.         }
  129.         return $this;
  130.     }
  131.     public function removeVacante(GHVacante $vacante): static
  132.     {
  133.         if ($this->vacante->removeElement($vacante)) {
  134.             // set the owning side to null (unless already changed)
  135.             if ($vacante->getSede() === $this) {
  136.                 $vacante->setSede(null);
  137.             }
  138.         }
  139.         return $this;
  140.     }
  141.     /**
  142.      * @return Collection<int, GHCambioContrato>
  143.      */
  144.     public function getCambioContrato(): Collection
  145.     {
  146.         return $this->cambioContrato;
  147.     }
  148.     public function addCambioContrato(GHCambioContrato $cambioContrato): static
  149.     {
  150.         if (!$this->cambioContrato->contains($cambioContrato)) {
  151.             $this->cambioContrato->add($cambioContrato);
  152.             $cambioContrato->setSede($this);
  153.         }
  154.         return $this;
  155.     }
  156.     public function removeCambioContrato(GHCambioContrato $cambioContrato): static
  157.     {
  158.         if ($this->cambioContrato->removeElement($cambioContrato)) {
  159.             // set the owning side to null (unless already changed)
  160.             if ($cambioContrato->getSede() === $this) {
  161.                 $cambioContrato->setSede(null);
  162.             }
  163.         }
  164.         return $this;
  165.     }
  166.     /**
  167.      * @return Collection<int, RFSolicitudSuministro>
  168.      */
  169.     public function getSolicitudSuministro(): Collection
  170.     {
  171.         return $this->solicitudSuministro;
  172.     }
  173.     public function addSolicitudSuministro(RFSolicitudSuministro $solicitudSuministro): static
  174.     {
  175.         if (!$this->solicitudSuministro->contains($solicitudSuministro)) {
  176.             $this->solicitudSuministro->add($solicitudSuministro);
  177.             $solicitudSuministro->setSede($this);
  178.         }
  179.         return $this;
  180.     }
  181.     public function removeSolicitudSuministro(RFSolicitudSuministro $solicitudSuministro): static
  182.     {
  183.         if ($this->solicitudSuministro->removeElement($solicitudSuministro)) {
  184.             // set the owning side to null (unless already changed)
  185.             if ($solicitudSuministro->getSede() === $this) {
  186.                 $solicitudSuministro->setSede(null);
  187.             }
  188.         }
  189.         return $this;
  190.     }
  191.     /**
  192.      * @return Collection<int, TerPersona>
  193.      */
  194.     public function getPersona(): Collection
  195.     {
  196.         return $this->persona;
  197.     }
  198.     public function addPersona(TerPersona $persona): static
  199.     {
  200.         if (!$this->persona->contains($persona)) {
  201.             $this->persona->add($persona);
  202.             $persona->setSede($this);
  203.         }
  204.         return $this;
  205.     }
  206.     public function removePersona(TerPersona $persona): static
  207.     {
  208.         if ($this->persona->removeElement($persona)) {
  209.             // set the owning side to null (unless already changed)
  210.             if ($persona->getSede() === $this) {
  211.                 $persona->setSede(null);
  212.             }
  213.         }
  214.         return $this;
  215.     }
  216.     /**
  217.      * @return Collection<int, RFFUID>
  218.      */
  219.     public function getFUID(): Collection
  220.     {
  221.         return $this->FUID;
  222.     }
  223.     public function addFUID(RFFUID $fUID): static
  224.     {
  225.         if (!$this->FUID->contains($fUID)) {
  226.             $this->FUID->add($fUID);
  227.             $fUID->setSede($this);
  228.         }
  229.         return $this;
  230.     }
  231.     public function removeFUID(RFFUID $fUID): static
  232.     {
  233.         if ($this->FUID->removeElement($fUID)) {
  234.             // set the owning side to null (unless already changed)
  235.             if ($fUID->getSede() === $this) {
  236.                 $fUID->setSede(null);
  237.             }
  238.         }
  239.         return $this;
  240.     }
  241.     /**
  242.      * @return Collection<int, RFInventarioDocumentalComex>
  243.      */
  244.     public function getInventarioDocumentalComex(): Collection
  245.     {
  246.         return $this->inventarioDocumentalComex;
  247.     }
  248.     public function addInventarioDocumentalComex(RFInventarioDocumentalComex $inventarioDocumentalComex): static
  249.     {
  250.         if (!$this->inventarioDocumentalComex->contains($inventarioDocumentalComex)) {
  251.             $this->inventarioDocumentalComex->add($inventarioDocumentalComex);
  252.             $inventarioDocumentalComex->setSede($this);
  253.         }
  254.         return $this;
  255.     }
  256.     public function removeInventarioDocumentalComex(RFInventarioDocumentalComex $inventarioDocumentalComex): static
  257.     {
  258.         if ($this->inventarioDocumentalComex->removeElement($inventarioDocumentalComex)) {
  259.             // set the owning side to null (unless already changed)
  260.             if ($inventarioDocumentalComex->getSede() === $this) {
  261.                 $inventarioDocumentalComex->setSede(null);
  262.             }
  263.         }
  264.         return $this;
  265.     }
  266.     /**
  267.      * @return Collection<int, RFInventarioDocumentalFinanzas>
  268.      */
  269.     public function getInventarioDocumentalFinanzas(): Collection
  270.     {
  271.         return $this->inventarioDocumentalFinanzas;
  272.     }
  273.     public function addInventarioDocumentalFinanza(RFInventarioDocumentalFinanzas $inventarioDocumentalFinanza): static
  274.     {
  275.         if (!$this->inventarioDocumentalFinanzas->contains($inventarioDocumentalFinanza)) {
  276.             $this->inventarioDocumentalFinanzas->add($inventarioDocumentalFinanza);
  277.             $inventarioDocumentalFinanza->setSede($this);
  278.         }
  279.         return $this;
  280.     }
  281.     public function removeInventarioDocumentalFinanza(RFInventarioDocumentalFinanzas $inventarioDocumentalFinanza): static
  282.     {
  283.         if ($this->inventarioDocumentalFinanzas->removeElement($inventarioDocumentalFinanza)) {
  284.             // set the owning side to null (unless already changed)
  285.             if ($inventarioDocumentalFinanza->getSede() === $this) {
  286.                 $inventarioDocumentalFinanza->setSede(null);
  287.             }
  288.         }
  289.         return $this;
  290.     }
  291.     /**
  292.      * @return Collection<int, RFInventarioDocumentalGesHum>
  293.      */
  294.     public function getInventarioDocumentalGesHum(): Collection
  295.     {
  296.         return $this->inventarioDocumentalGesHum;
  297.     }
  298.     public function addInventarioDocumentalGesHum(RFInventarioDocumentalGesHum $inventarioDocumentalGesHum): static
  299.     {
  300.         if (!$this->inventarioDocumentalGesHum->contains($inventarioDocumentalGesHum)) {
  301.             $this->inventarioDocumentalGesHum->add($inventarioDocumentalGesHum);
  302.             $inventarioDocumentalGesHum->setSede($this);
  303.         }
  304.         return $this;
  305.     }
  306.     public function removeInventarioDocumentalGesHum(RFInventarioDocumentalGesHum $inventarioDocumentalGesHum): static
  307.     {
  308.         if ($this->inventarioDocumentalGesHum->removeElement($inventarioDocumentalGesHum)) {
  309.             // set the owning side to null (unless already changed)
  310.             if ($inventarioDocumentalGesHum->getSede() === $this) {
  311.                 $inventarioDocumentalGesHum->setSede(null);
  312.             }
  313.         }
  314.         return $this;
  315.     }
  316.     /**
  317.      * @return Collection<int, RFInventarioDocumentalSST>
  318.      */
  319.     public function getInventarioDocumentalSST(): Collection
  320.     {
  321.         return $this->inventarioDocumentalSST;
  322.     }
  323.     public function addInventarioDocumentalSST(RFInventarioDocumentalSST $inventarioDocumentalSST): static
  324.     {
  325.         if (!$this->inventarioDocumentalSST->contains($inventarioDocumentalSST)) {
  326.             $this->inventarioDocumentalSST->add($inventarioDocumentalSST);
  327.             $inventarioDocumentalSST->setSede($this);
  328.         }
  329.         return $this;
  330.     }
  331.     public function removeInventarioDocumentalSST(RFInventarioDocumentalSST $inventarioDocumentalSST): static
  332.     {
  333.         if ($this->inventarioDocumentalSST->removeElement($inventarioDocumentalSST)) {
  334.             // set the owning side to null (unless already changed)
  335.             if ($inventarioDocumentalSST->getSede() === $this) {
  336.                 $inventarioDocumentalSST->setSede(null);
  337.             }
  338.         }
  339.         return $this;
  340.     }
  341.     /**
  342.      * @return Collection<int, RFCambioCustodiaDocumento>
  343.      */
  344.     public function getCambioCustodiaDocumento(): Collection
  345.     {
  346.         return $this->cambioCustodiaDocumento;
  347.     }
  348.     public function addCambioCustodiaDocumento(RFCambioCustodiaDocumento $cambioCustodiaDocumento): static
  349.     {
  350.         if (!$this->cambioCustodiaDocumento->contains($cambioCustodiaDocumento)) {
  351.             $this->cambioCustodiaDocumento->add($cambioCustodiaDocumento);
  352.             $cambioCustodiaDocumento->setSede($this);
  353.         }
  354.         return $this;
  355.     }
  356.     public function removeCambioCustodiaDocumento(RFCambioCustodiaDocumento $cambioCustodiaDocumento): static
  357.     {
  358.         if ($this->cambioCustodiaDocumento->removeElement($cambioCustodiaDocumento)) {
  359.             // set the owning side to null (unless already changed)
  360.             if ($cambioCustodiaDocumento->getSede() === $this) {
  361.                 $cambioCustodiaDocumento->setSede(null);
  362.             }
  363.         }
  364.         return $this;
  365.     }
  366.     /**
  367.      * @return Collection<int, JurProceso>
  368.      */
  369.     public function getProcesosJuridico(): Collection
  370.     {
  371.         return $this->procesosJuridico;
  372.     }
  373.     public function addProcesosJuridico(JurProceso $procesosJuridico): static
  374.     {
  375.         if (!$this->procesosJuridico->contains($procesosJuridico)) {
  376.             $this->procesosJuridico->add($procesosJuridico);
  377.             $procesosJuridico->setSede($this);
  378.         }
  379.         return $this;
  380.     }
  381.     public function removeProcesosJuridico(JurProceso $procesosJuridico): static
  382.     {
  383.         if ($this->procesosJuridico->removeElement($procesosJuridico)) {
  384.             // set the owning side to null (unless already changed)
  385.             if ($procesosJuridico->getSede() === $this) {
  386.                 $procesosJuridico->setSede(null);
  387.             }
  388.         }
  389.         return $this;
  390.     }
  391.     /**
  392.      * @return Collection<int, GHPerfilCargo>
  393.      */
  394.     public function getPerfilCargos(): Collection
  395.     {
  396.         return $this->perfilCargos;
  397.     }
  398.     public function addPerfilCargo(GHPerfilCargo $perfilCargo): static
  399.     {
  400.         if (!$this->perfilCargos->contains($perfilCargo)) {
  401.             $this->perfilCargos->add($perfilCargo);
  402.             $perfilCargo->addSede($this);
  403.         }
  404.         return $this;
  405.     }
  406.     public function removePerfilCargo(GHPerfilCargo $perfilCargo): static
  407.     {
  408.         if ($this->perfilCargos->removeElement($perfilCargo)) {
  409.             $perfilCargo->removeSede($this);
  410.         }
  411.         return $this;
  412.     }
  413.     /**
  414.      * @return Collection<int, TerEmpresa>
  415.      */
  416.     public function getEmpresaFilial(): Collection
  417.     {
  418.         return $this->empresaFilial;
  419.     }
  420.     public function addEmpresaFilial(TerEmpresa $empresaFilial): static
  421.     {
  422.         if (!$this->empresaFilial->contains($empresaFilial)) {
  423.             $this->empresaFilial->add($empresaFilial);
  424.         }
  425.         return $this;
  426.     }
  427.     public function removeEmpresaFilial(TerEmpresa $empresaFilial): static
  428.     {
  429.         $this->empresaFilial->removeElement($empresaFilial);
  430.         return $this;
  431.     }
  432.     /**
  433.      * @return Collection<int, GHMatrizEntrenamiento>
  434.      */
  435.     public function getMatrizEntrenamientos(): Collection
  436.     {
  437.         return $this->matrizEntrenamientos;
  438.     }
  439.     public function addMatrizEntrenamiento(GHMatrizEntrenamiento $matrizEntrenamiento): static
  440.     {
  441.         if (!$this->matrizEntrenamientos->contains($matrizEntrenamiento)) {
  442.             $this->matrizEntrenamientos->add($matrizEntrenamiento);
  443.             $matrizEntrenamiento->setSede($this);
  444.         }
  445.         return $this;
  446.     }
  447.     public function removeMatrizEntrenamiento(GHMatrizEntrenamiento $matrizEntrenamiento): static
  448.     {
  449.         if ($this->matrizEntrenamientos->removeElement($matrizEntrenamiento)) {
  450.             // set the owning side to null (unless already changed)
  451.             if ($matrizEntrenamiento->getSede() === $this) {
  452.                 $matrizEntrenamiento->setSede(null);
  453.             }
  454.         }
  455.         return $this;
  456.     }
  457.     /**
  458.      * @return Collection<int, SegControlAcceso>
  459.      */
  460.     public function getControlAcceso(): Collection
  461.     {
  462.         return $this->controlAcceso;
  463.     }
  464.     public function addControlAcceso(SegControlAcceso $controlAcceso): static
  465.     {
  466.         if (!$this->controlAcceso->contains($controlAcceso)) {
  467.             $this->controlAcceso->add($controlAcceso);
  468.             $controlAcceso->setSucursal($this);
  469.         }
  470.         return $this;
  471.     }
  472.     public function removeControlAcceso(SegControlAcceso $controlAcceso): static
  473.     {
  474.         if ($this->controlAcceso->removeElement($controlAcceso)) {
  475.             // set the owning side to null (unless already changed)
  476.             if ($controlAcceso->getSucursal() === $this) {
  477.                 $controlAcceso->setSucursal(null);
  478.             }
  479.         }
  480.         return $this;
  481.     }
  482.     /**
  483.      * @return Collection<int, TerAreaSede>
  484.      */
  485.     public function getAreaSede(): Collection
  486.     {
  487.         return $this->areaSede;
  488.     }
  489.     public function addAreaSede(TerAreaSede $areaSede): static
  490.     {
  491.         if (!$this->areaSede->contains($areaSede)) {
  492.             $this->areaSede->add($areaSede);
  493.             $areaSede->setSede($this);
  494.         }
  495.         return $this;
  496.     }
  497.     public function removeAreaSede(TerAreaSede $areaSede): static
  498.     {
  499.         if ($this->areaSede->removeElement($areaSede)) {
  500.             // set the owning side to null (unless already changed)
  501.             if ($areaSede->getSede() === $this) {
  502.                 $areaSede->setSede(null);
  503.             }
  504.         }
  505.         return $this;
  506.     }
  507.     /**
  508.      * @return Collection<int, SegIngresoVisitante>
  509.      */
  510.     public function getSedeUsuarioIngresoVisitante(): Collection
  511.     {
  512.         return $this->sedeUsuarioIngresoVisitante;
  513.     }
  514.     public function addSedeUsuarioIngresoVisitante(SegIngresoVisitante $sedeUsuarioIngresoVisitante): static
  515.     {
  516.         if (!$this->sedeUsuarioIngresoVisitante->contains($sedeUsuarioIngresoVisitante)) {
  517.             $this->sedeUsuarioIngresoVisitante->add($sedeUsuarioIngresoVisitante);
  518.             $sedeUsuarioIngresoVisitante->setSede($this);
  519.         }
  520.         return $this;
  521.     }
  522.     public function removeSedeUsuarioIngresoVisitante(SegIngresoVisitante $sedeUsuarioIngresoVisitante): static
  523.     {
  524.         if ($this->sedeUsuarioIngresoVisitante->removeElement($sedeUsuarioIngresoVisitante)) {
  525.             // set the owning side to null (unless already changed)
  526.             if ($sedeUsuarioIngresoVisitante->getSede() === $this) {
  527.                 $sedeUsuarioIngresoVisitante->setSede(null);
  528.             }
  529.         }
  530.         return $this;
  531.     }
  532.     /**
  533.      * @return Collection<int, RFPrecintoSolicitud>
  534.      */
  535.     public function getPrecintoSolicitud(): Collection
  536.     {
  537.         return $this->precintoSolicitud;
  538.     }
  539.     public function addPrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static
  540.     {
  541.         if (!$this->precintoSolicitud->contains($precintoSolicitud)) {
  542.             $this->precintoSolicitud->add($precintoSolicitud);
  543.             $precintoSolicitud->setSede($this);
  544.         }
  545.         return $this;
  546.     }
  547.     public function removePrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static
  548.     {
  549.         if ($this->precintoSolicitud->removeElement($precintoSolicitud)) {
  550.             // set the owning side to null (unless already changed)
  551.             if ($precintoSolicitud->getSede() === $this) {
  552.                 $precintoSolicitud->setSede(null);
  553.             }
  554.         }
  555.         return $this;
  556.     }
  557.     /**
  558.      * @return Collection<int, RFPrecintoAsignacion>
  559.      */
  560.     public function getPrecintoAsignacion(): Collection
  561.     {
  562.         return $this->precintoAsignacion;
  563.     }
  564.     public function addPrecintoAsignacion(RFPrecintoAsignacion $precintoAsignacion): static
  565.     {
  566.         if (!$this->precintoAsignacion->contains($precintoAsignacion)) {
  567.             $this->precintoAsignacion->add($precintoAsignacion);
  568.             $precintoAsignacion->setSede($this);
  569.         }
  570.         return $this;
  571.     }
  572.     public function removePrecintoAsignacion(RFPrecintoAsignacion $precintoAsignacion): static
  573.     {
  574.         if ($this->precintoAsignacion->removeElement($precintoAsignacion)) {
  575.             // set the owning side to null (unless already changed)
  576.             if ($precintoAsignacion->getSede() === $this) {
  577.                 $precintoAsignacion->setSede(null);
  578.             }
  579.         }
  580.         return $this;
  581.     }
  582.     /**
  583.      * @return Collection<int, RFOrdenCompra>
  584.      */
  585.     public function getOrdenCompra(): Collection
  586.     {
  587.         return $this->ordenCompra;
  588.     }
  589.     public function addOrdenCompra(RFOrdenCompra $ordenCompra): static
  590.     {
  591.         if (!$this->ordenCompra->contains($ordenCompra)) {
  592.             $this->ordenCompra->add($ordenCompra);
  593.             $ordenCompra->setSede($this);
  594.         }
  595.         return $this;
  596.     }
  597.     public function removeOrdenCompra(RFOrdenCompra $ordenCompra): static
  598.     {
  599.         if ($this->ordenCompra->removeElement($ordenCompra)) {
  600.             // set the owning side to null (unless already changed)
  601.             if ($ordenCompra->getSede() === $this) {
  602.                 $ordenCompra->setSede(null);
  603.             }
  604.         }
  605.         return $this;
  606.     }
  607.     /**
  608.      * @return Collection<int, GHCapacitacionActividad>
  609.      */
  610.     public function getCapacitacionActividades(): Collection
  611.     {
  612.         return $this->capacitacionActividades;
  613.     }
  614.     public function addCapacitacionActividade(GHCapacitacionActividad $capacitacionActividade): static
  615.     {
  616.         if (!$this->capacitacionActividades->contains($capacitacionActividade)) {
  617.             $this->capacitacionActividades->add($capacitacionActividade);
  618.             $capacitacionActividade->setSede($this);
  619.         }
  620.         return $this;
  621.     }
  622.     public function removeCapacitacionActividade(GHCapacitacionActividad $capacitacionActividade): static
  623.     {
  624.         if ($this->capacitacionActividades->removeElement($capacitacionActividade)) {
  625.             // set the owning side to null (unless already changed)
  626.             if ($capacitacionActividade->getSede() === $this) {
  627.                 $capacitacionActividade->setSede(null);
  628.             }
  629.         }
  630.         return $this;
  631.     }
  632.     /**
  633.      * @return Collection<int, GHCapacitacionActividad>
  634.      */
  635.     public function getGHCapacitacionActividads(): Collection
  636.     {
  637.         return $this->gHCapacitacionActividads;
  638.     }
  639.     public function addGHCapacitacionActividad(GHCapacitacionActividad $gHCapacitacionActividad): static
  640.     {
  641.         if (!$this->gHCapacitacionActividads->contains($gHCapacitacionActividad)) {
  642.             $this->gHCapacitacionActividads->add($gHCapacitacionActividad);
  643.             $gHCapacitacionActividad->addSucursale($this);
  644.         }
  645.         return $this;
  646.     }
  647.     public function removeGHCapacitacionActividad(GHCapacitacionActividad $gHCapacitacionActividad): static
  648.     {
  649.         if ($this->gHCapacitacionActividads->removeElement($gHCapacitacionActividad)) {
  650.             $gHCapacitacionActividad->removeSucursale($this);
  651.         }
  652.         return $this;
  653.     }
  654.     /**
  655.      * @return Collection<int, GHGrupoTrabajo>
  656.      */
  657.     public function getGHGrupoTrabajos(): Collection
  658.     {
  659.         return $this->gHGrupoTrabajos;
  660.     }
  661.     public function addGHGrupoTrabajo(GHGrupoTrabajo $gHGrupoTrabajo): static
  662.     {
  663.         if (!$this->gHGrupoTrabajos->contains($gHGrupoTrabajo)) {
  664.             $this->gHGrupoTrabajos->add($gHGrupoTrabajo);
  665.             $gHGrupoTrabajo->setSucursal($this);
  666.         }
  667.         return $this;
  668.     }
  669.     public function removeGHGrupoTrabajo(GHGrupoTrabajo $gHGrupoTrabajo): static
  670.     {
  671.         if ($this->gHGrupoTrabajos->removeElement($gHGrupoTrabajo)) {
  672.             // set the owning side to null (unless already changed)
  673.             if ($gHGrupoTrabajo->getSucursal() === $this) {
  674.                 $gHGrupoTrabajo->setSucursal(null);
  675.             }
  676.         }
  677.         return $this;
  678.     }
  679. }