fixed bug when removing properties
This commit is contained in:
parent
282eb921a7
commit
3e903ae91d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue