*/ #[ORM\OneToMany(targetEntity: Bill::class, mappedBy: 'cirilCivil', cascade: ['persist'], orphanRemoval: true)] protected Collection $bills; #[ORM\OneToOne(targetEntity: File::class, cascade: ['persist'])] protected ?File $file; public function getId(): int { return $this->id; } public function setId(int $id): self { $this->id = $id; return $this; } public function getBills(): Collection { return $this->bills; } public function addBill(Bill $bill): self { if (!$this->bills->contains($bill)) { $this->bills[] = $bill; $bill->setCirilCivil($this); } return $this; } public function removeBill(Bill $bill): self { $this->bills->removeElement($bill); return $this; } public function getFile(): ?File { return $this->file; } public function setFile(?File $file): self { $this->file = $file; return $this; } }