<?phpnamespace App\Entity;use App\Repository\ComCasoComexRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComCasoComexRepository::class)]class ComCasoComex{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $observacionesAdicionales = null; #[ORM\OneToMany(mappedBy: 'comCasoComex', targetEntity: ComDocumentosSoporteCasoComex::class)] private Collection $documentosSoporteCasoComex; #[ORM\ManyToOne(inversedBy: 'comCasoComex')] private ?TerEmpresaCliente $terEmpresaCliente = null; #[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\OneToMany(mappedBy: 'comCasoComex', targetEntity: ComAsignarComex::class)] private Collection $asignarComex; public function __construct() { $this->documentosSoporteCasoComex = new ArrayCollection(); $this->asignarComex = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getObservacionesAdicionales(): ?string { return $this->observacionesAdicionales; } public function setObservacionesAdicionales(?string $observacionesAdicionales): static { $this->observacionesAdicionales = $observacionesAdicionales; return $this; } /** * @return Collection<int, ComDocumentosSoporteCasoComex> */ public function getDocumentosSoporteCasoComex(): Collection { return $this->documentosSoporteCasoComex; } public function addDocumentosSoporteCasoComex(ComDocumentosSoporteCasoComex $documentosSoporteCasoComex): static { if (!$this->documentosSoporteCasoComex->contains($documentosSoporteCasoComex)) { $this->documentosSoporteCasoComex->add($documentosSoporteCasoComex); $documentosSoporteCasoComex->setComCasoComex($this); } return $this; } public function removeDocumentosSoporteCasoComex(ComDocumentosSoporteCasoComex $documentosSoporteCasoComex): static { if ($this->documentosSoporteCasoComex->removeElement($documentosSoporteCasoComex)) { // set the owning side to null (unless already changed) if ($documentosSoporteCasoComex->getComCasoComex() === $this) { $documentosSoporteCasoComex->setComCasoComex(null); } } return $this; } public function getTerEmpresaCliente(): ?TerEmpresaCliente { return $this->terEmpresaCliente; } public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static { $this->terEmpresaCliente = $terEmpresaCliente; 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; } /** * @return Collection<int, ComAsignarComex> */ public function getAsignarComex(): Collection { return $this->asignarComex; } public function addAsignarComex(ComAsignarComex $asignarComex): static { if (!$this->asignarComex->contains($asignarComex)) { $this->asignarComex->add($asignarComex); $asignarComex->setComCasoComex($this); } return $this; } public function removeAsignarComex(ComAsignarComex $asignarComex): static { if ($this->asignarComex->removeElement($asignarComex)) { // set the owning side to null (unless already changed) if ($asignarComex->getComCasoComex() === $this) { $asignarComex->setComCasoComex(null); } } return $this; }}