<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity
* @ORM\Table(
* name="participante_grupo_detalle",
* indexes={
* @ORM\Index(name="idx_etp_participante", columns={"participante_id"}),
* @ORM\Index(name="idx_etp_deleted_at", columns={"deleted_at"})
* }
* )
*/
class ParticipanteGrupoDetalle extends \App\Entity\BaseEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true, name="id_externo")
*/
private $idExterno;
/**
* @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="update")
*/
private $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
private $deletedAt;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $certificar;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $certificado;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $estadoFinalizacion;
/**
* @ORM\OneToOne(targetEntity=\App\Entity\ParticipantesGrupo::class, mappedBy="participanteGrupoDetalle")
*/
private $participantesGrupos;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Participante::class, inversedBy="participanteGrupoDetalle")
* @ORM\JoinColumn(name="participante_id", referencedColumnName="id")
*/
private $participante;
public function getId(): ?int
{
return $this->id;
}
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 getParticipantesGrupos(): ?ParticipantesGrupo
{
return $this->participantesGrupos;
}
public function setParticipantesGrupos(?ParticipantesGrupo $participantesGrupos): static
{
// unset the owning side of the relation if necessary
if ($participantesGrupos === null && $this->participantesGrupos !== null) {
$this->participantesGrupos->setParticipanteGrupoDetalle(null);
}
// set the owning side of the relation if necessary
if ($participantesGrupos !== null && $participantesGrupos->getParticipanteGrupoDetalle() !== $this) {
$participantesGrupos->setParticipanteGrupoDetalle($this);
}
$this->participantesGrupos = $participantesGrupos;
return $this;
}
public function getParticipante(): ?Participante
{
return $this->participante;
}
public function setParticipante(?Participante $participante): static
{
$this->participante = $participante;
return $this;
}
public function isCertificar(): ?bool
{
return $this->certificar;
}
public function setCertificar(?bool $certificar): static
{
$this->certificar = $certificar;
return $this;
}
public function isCertificado(): ?bool
{
return $this->certificado;
}
public function setCertificado(?bool $certificado): static
{
$this->certificado = $certificado;
return $this;
}
public function getEstadoFinalizacion(): ?string
{
return $this->estadoFinalizacion;
}
public function setEstadoFinalizacion(?string $estadoFinalizacion): static
{
$this->estadoFinalizacion = $estadoFinalizacion;
return $this;
}
}