public function disconnectCells() { $this->_cellCollection->unsetWorksheetCells(); $this->_cellCollection = null; // detach ourself from the workbook, so that it can then delete this worksheet successfully $this->_parent = null; }