<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class CentroFormacionAcogeGrupo extends \App\Entity\BaseEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $idExterno;
/**
* @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
*/
private $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
private $deletedAt;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Grupo::class, inversedBy="centroFormacionAcogeGrupos")
* @ORM\JoinColumn(name="grupo_id", referencedColumnName="id")
*/
private $grupo;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\CentroFormacion::class, inversedBy="centroFormacionAcogeGrupos")
* @ORM\JoinColumn(name="centro_formacion_id", referencedColumnName="id")
*/
private $centroFormacion;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getIdExterno(): ?string
{
return $this->idExterno;
}
public function setIdExterno(?string $idExterno): static
{
$this->idExterno = $idExterno;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): static
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getGrupo(): ?Grupo
{
return $this->grupo;
}
public function setGrupo(?Grupo $grupo): static
{
$this->grupo = $grupo;
return $this;
}
public function getCentroFormacion(): ?CentroFormacion
{
return $this->centroFormacion;
}
public function setCentroFormacion(?CentroFormacion $centroFormacion): static
{
$this->centroFormacion = $centroFormacion;
return $this;
}
}