Merging Corridor and Room in Place

This commit is contained in:
Kouril42
2023-02-02 17:09:16 +01:00
parent ce2c643cc6
commit 250e186017
11 changed files with 142 additions and 323 deletions
+6 -6
View File
@@ -18,8 +18,8 @@ class PolySurface
#[ORM\OneToMany(targetEntity: PlaneSurface::class, mappedBy: "polySurface")]
private $polysurfaceComponent;
#[ORM\ManyToOne(targetEntity: Corridor::class)]
private $SurfaceRepresentation;
#[ORM\ManyToOne(targetEntity: Place::class)]
private $place;
public function __construct()
{
@@ -61,14 +61,14 @@ class PolySurface
return $this;
}
public function getSurfaceRepresentation(): ?Corridor
public function getPlace(): ?Place
{
return $this->SurfaceRepresentation;
return $this->place;
}
public function setSurfaceRepresentation(?Corridor $SurfaceRepresentation): self
public function setPlace(?Place $place): self
{
$this->SurfaceRepresentation = $SurfaceRepresentation;
$this->place = $place;
return $this;
}