diff --git a/backend/lib/Model/Entity.php b/backend/lib/Model/Entity.php index 915419d..a475871 100644 --- a/backend/lib/Model/Entity.php +++ b/backend/lib/Model/Entity.php @@ -177,7 +177,7 @@ abstract class Entity { public function unsetProperty($key, ORM\EntityManager $em) { $property = $this->findProperty($key); $em->remove($property); - $this->properties->remove($index); + $this->properties->removeElement($property); } /*