<?phpnamespace App\Entity;use App\Repository\ComComexRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComComexRepository::class)]class ComComex{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToMany(targetEntity: TerPersona::class, inversedBy: 'comComex')] private Collection $colaborador; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 255)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 255)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'comComex')] private ?ComMapaComunicaciones $comMapaComunicaciones = null; public function __construct() { $this->colaborador = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection<int, TerPersona> */ public function getColaborador(): Collection { return $this->colaborador; } public function addColaborador(TerPersona $colaborador): static { if (!$this->colaborador->contains($colaborador)) { $this->colaborador->add($colaborador); } return $this; } public function removeColaborador(TerPersona $colaborador): static { $this->colaborador->removeElement($colaborador); return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getComMapaComunicaciones(): ?ComMapaComunicaciones { return $this->comMapaComunicaciones; } public function setComMapaComunicaciones(?ComMapaComunicaciones $comMapaComunicaciones): static { $this->comMapaComunicaciones = $comMapaComunicaciones; return $this; }}