*/ #[ORM\OneToMany(mappedBy: 'repository', targetEntity: ImageImageRepository::class)] private Collection $imageImageRepositories; public function __construct() { parent::__construct(); $this->imageImageRepositories = new ArrayCollection(); } public function getIp(): ?string { return $this->ip; } public function setIp(string $ip): static { $this->ip = $ip; return $this; } public function getComments(): ?string { return $this->comments; } public function setComments(?string $comments): static { $this->comments = $comments; return $this; } /** * @return Collection */ public function getImageImageRepositories(): Collection { return $this->imageImageRepositories; } public function addImageImageRepository(ImageImageRepository $imageImageRepository): static { if (!$this->imageImageRepositories->contains($imageImageRepository)) { $this->imageImageRepositories->add($imageImageRepository); $imageImageRepository->setRepository($this); } return $this; } public function removeImageImageRepository(ImageImageRepository $imageImageRepository): static { if ($this->imageImageRepositories->removeElement($imageImageRepository)) { // set the owning side to null (unless already changed) if ($imageImageRepository->getRepository() === $this) { $imageImageRepository->setRepository(null); } } return $this; } }