diff --git a/EMongoSoftDocument.php b/EMongoSoftDocument.php index 20520f15..45bf759f 100644 --- a/EMongoSoftDocument.php +++ b/EMongoSoftDocument.php @@ -78,11 +78,7 @@ public function __isset($name) public function __unset($name) { if(array_key_exists($name, $this->softAttributes)) // Use of array_key_exists is mandatory !!! - { unset($this->softAttributes[$name]); - $names = array_flip($this->_attributeNames); - unset($this->_attributeNames[$names[$name]]); - } else parent::__unset($name); }