Do not unset class properties!

this will result in objects that do not have the property anymore :-)
This commit is contained in:
Carsten Brandt
2014-01-05 01:11:33 +01:00
parent 2f8f64ccc8
commit e8b674dc78
2 changed files with 7 additions and 9 deletions

View File

@@ -199,6 +199,6 @@ class Item extends Object
public function save()
{
$this->manager->saveItem($this, $this->_oldName);
unset($this->_oldName);
$this->_oldName = null;
}
}