/** * 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|null $documentName if given, only documents of this type will get detached */ public function clear($documentName = null) { $this->unitOfWork->clear($documentName); }