fixed bug when removing properties

This commit is contained in:
Steffen Vogel 2010-10-19 00:42:01 +02:00
parent 282eb921a7
commit 3e903ae91d

View file

@ -177,7 +177,7 @@ abstract class Entity {
public function unsetProperty($key, ORM\EntityManager $em) { public function unsetProperty($key, ORM\EntityManager $em) {
$property = $this->findProperty($key); $property = $this->findProperty($key);
$em->remove($property); $em->remove($property);
$this->properties->remove($index); $this->properties->removeElement($property);
} }
/* /*