/** * Clears the DocumentManager. All entities that are currently managed * by this DocumentManager become detached. * * @param string $documentName */ public function clear($documentName = null) { if ($documentName === null) { $this->unitOfWork->clear(); } else { //TODO throw new MongoDBException("DocumentManager#clear(\$documentName) not yet implemented."); } }
/** * Clears the DocumentManager. All documents that are currently managed * by this DocumentManager become detached. * * @param string $documentName */ public function clear() { $this->_unitOfWork->clear(); }