<?phpnamespace App\Entity;use App\Repository\ComVisitaComercialRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComVisitaComercialRepository::class)]class ComVisitaComercial{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $fechaVisita = null; #[ORM\Column(length: 255)] private ?string $ejecutivoComercial = null; #[ORM\Column(length: 255, nullable: true)] private ?string $vincularActaAnterior = null; #[ORM\Column(length: 255)] private ?string $tipoVisita = null; #[ORM\Column(length: 255, nullable: true)] private ?string $ubicacion = null; #[ORM\Column(length: 255)] private ?string $temasTratados = null; #[ORM\ManyToOne(inversedBy: 'visitaComercial')] private ?ComProspecto $comProspectoVisitaComercial = null; #[ORM\Column(length: 255)] private ?string $motivo = 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: 'comVisitaComercial', targetEntity: ComVisitaComercialAsistentes::class)] private Collection $asistentes; #[ORM\OneToMany(mappedBy: 'comVisitaComercial', targetEntity: ComVisitaComercialCompromisos::class)] private Collection $compromisos; #[ORM\ManyToOne(inversedBy: 'visitaComercial')] private ?TerEmpresaCliente $terEmpresaCliente = null; public function __construct() { $this->asistentes = new ArrayCollection(); $this->compromisos = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getFechaVisita(): ?\DateTimeInterface { return $this->fechaVisita; } public function setFechaVisita(\DateTimeInterface $fechaVisita): static { $this->fechaVisita = $fechaVisita; return $this; } public function getEjecutivoComercial(): ?string { return $this->ejecutivoComercial; } public function setEjecutivoComercial(string $ejecutivoComercial): static { $this->ejecutivoComercial = $ejecutivoComercial; return $this; } public function getVincularActaAnterior(): ?string { return $this->vincularActaAnterior; } public function setVincularActaAnterior(?string $vincularActaAnterior): static { $this->vincularActaAnterior = $vincularActaAnterior; return $this; } public function getTipoVisita(): ?string { return $this->tipoVisita; } public function setTipoVisita(string $tipoVisita): static { $this->tipoVisita = $tipoVisita; return $this; } public function getUbicacion(): ?string { return $this->ubicacion; } public function setUbicacion(?string $ubicacion): static { $this->ubicacion = $ubicacion; return $this; } public function getTemasTratados(): ?string { return $this->temasTratados; } public function setTemasTratados(string $temasTratados): static { $this->temasTratados = $temasTratados; return $this; } public function getComProspectoVisitaComercial(): ?ComProspecto { return $this->comProspectoVisitaComercial; } public function setComProspectoVisitaComercial(?ComProspecto $comProspectoVisitaComercial): static { $this->comProspectoVisitaComercial = $comProspectoVisitaComercial; return $this; } public function getMotivo(): ?string { return $this->motivo; } public function setMotivo(string $motivo): static { $this->motivo = $motivo; 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, ComVisitaComercialAsistentes> */ public function getAsistentes(): Collection { return $this->asistentes; } public function addAsistente(ComVisitaComercialAsistentes $asistente): static { if (!$this->asistentes->contains($asistente)) { $this->asistentes->add($asistente); $asistente->setComVisitaComercial($this); } return $this; } public function removeAsistente(ComVisitaComercialAsistentes $asistente): static { if ($this->asistentes->removeElement($asistente)) { // set the owning side to null (unless already changed) if ($asistente->getComVisitaComercial() === $this) { $asistente->setComVisitaComercial(null); } } return $this; } /** * @return Collection<int, ComVisitaComercialCompromisos> */ public function getCompromisos(): Collection { return $this->compromisos; } public function addCompromiso(ComVisitaComercialCompromisos $compromiso): static { if (!$this->compromisos->contains($compromiso)) { $this->compromisos->add($compromiso); $compromiso->setComVisitaComercial($this); } return $this; } public function removeCompromiso(ComVisitaComercialCompromisos $compromiso): static { if ($this->compromisos->removeElement($compromiso)) { // set the owning side to null (unless already changed) if ($compromiso->getComVisitaComercial() === $this) { $compromiso->setComVisitaComercial(null); } } return $this; } public function getTerEmpresaCliente(): ?TerEmpresaCliente { return $this->terEmpresaCliente; } public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static { $this->terEmpresaCliente = $terEmpresaCliente; return $this; }}