/** * Remove property from parent and datacontainer if set too true * * You should not use the object anymore after removing it! * * @param bool $blnRemoveFromDataContainer * * @return $this */ public function remove($blnRemoveFromDataContainer = false) { $this->objParent->removeProperty($this, $blnRemoveFromDataContainer); if ($this->objParent == $this->objDataContainer) { unset($this->objDataContainer); } unset($this->objParent); return $this; }