* * @ORM\OneToMany(targetEntity=GeographicalUnit::class, mappedBy="layer") */ private Collection $units; public function __construct() { $this->units = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): array { return $this->name; } public function getRefId(): string { return $this->refId; } public function getUnits(): Collection { return $this->units; } public function setName(array $name): GeographicalUnitLayer { $this->name = $name; return $this; } }