/** * Clears the repository, causing all managed documents to become detached. */ public function clear() { $this->dm->clear($this->class->rootDocumentName); }