From 3e903ae91d2b38b16fef2a20d6e428e3c9de5f44 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 19 Oct 2010 00:42:01 +0200 Subject: [PATCH] fixed bug when removing properties --- backend/lib/Model/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /*