*/ #[ORM\OneToMany(mappedBy: 'image', targetEntity: ImageImageRepository::class, cascade: ['persist'], orphanRemoval: true)] private Collection $imageImageRepositories; #[ORM\Column(nullable: true)] private ?int $version = null; #[ORM\Column(length: 255)] private ?string $type = null; public function __construct() { parent::__construct(); $this->imageImageRepositories = new ArrayCollection(); } public function getSoftwareProfile(): ?SoftwareProfile { return $this->softwareProfile; } public function setSoftwareProfile(?SoftwareProfile $softwareProfile): static { $this->softwareProfile = $softwareProfile; return $this; } public function getPartitionInfo(): ?string { return $this->partitionInfo; } public function setPartitionInfo(?string $partitionInfo): static { $this->partitionInfo = $partitionInfo; return $this; } public function getParent(): ?self { return $this->parent; } public function setParent(?self $parent): static { $this->parent = $parent; return $this; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): static { $this->client = $client; return $this; } public function isGlobal(): ?bool { return $this->isGlobal; } public function setIsGlobal(bool $isGlobal): static { $this->isGlobal = $isGlobal; 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->setImage($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->getImage() === $this) { $imageImageRepository->setImage(null); } } return $this; } public function containsImageImageRepository(ImageImageRepository $imageImageRepository): bool { foreach ($this->imageImageRepositories as $existing) { if ( $existing->getImage()->getId() === $imageImageRepository->getImage()->getId() && $existing->getRepository()->getId() === $imageImageRepository->getRepository()->getId() ) { return true; } } return false; } public function getVersion(): ?int { return $this->version; } public function setVersion(?int $version): static { $this->version = $version; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): static { $this->type = $type; return $this; } }