public function clear($entityName = null) { if ($entityName === null) { $this->unitOfWork->clear(); } else { //TODO throw new OXMException("EntityManager#clear(\$entityName) not yet implemented."); } }
/** * Clears the repository, causing all managed entities to become detached. */ public function clear() { $this->xem->clear($this->class->rootXmlEntityName); }