示例#1
0
 /**
  * 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.");
     }
 }
示例#2
0
 /**
  * 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();
     }
 }
示例#3
0
 /**
  * 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);
 }