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