/** * Clears the EntityManager. All entities that are currently managed * by this EntityManager become detached. * * @param string $entityName */ public function clear($entityName = null) { if ($entityName === null) { $this->_unitOfWork->clear(); } else { //TODO throw new ORMException("EntityManager#clear(\$entityName) not yet implemented."); } }
/** * Clears the EntityManager. All entities that are currently managed * by this EntityManager become detached. * * @param string $entityName */ public function clear($entityName = null) { if ($entityName === null) { $this->_unitOfWork->clear(); } else { //TODO throw DoctrineException::notImplemented(); } }
/** * Clears the EntityManager. All entities that are currently managed * by this EntityManager become detached. * * @param string $entityName if given, only entities of this type will get detached */ public function clear($entityName = null) { $this->unitOfWork->clear($entityName); }