original_string: public function moveUp(ConnectionInterface $con = null)
      {
          if ($this->isFirst()) {
              return $this;
          }
          if (null === $con) {
              $con = Propel::getServiceContainer()->getWriteConnection(CustomerGroupTableMap::DATABASE_NAME);
          }
          $con->beginTransaction();
          try {
              $prev = $this->getPrevious($con);
              $this->swapWith($prev, $con);
              $con->commit();
  
              return $this;
          } catch (Exception $e) {
              $con->rollback();
              throw $e;
          }
      }
code: public function moveUp(ConnectionInterface $con = null)
      {
          if ($this->isFirst()) {
              return $this;
          }
          if (null === $con) {
              $con = Propel::getServiceContainer()->getWriteConnection(CustomerGroupTableMap::DATABASE_NAME);
          }
          $con->beginTransaction();
          try {
              $prev = $this->getPrevious($con);
              $this->swapWith($prev, $con);
              $con->commit();
  
              return $this;
          } catch (Exception $e) {
              $con->rollback();
              throw $e;
          }
      }
code_tokens: public function moveUp ( ConnectionInterface $ con = null ) { if ( $ this -> isFirst ( ) ) { return $ this ; } if ( null === $ con ) { $ con = Propel :: getServiceContainer ( ) -> getWriteConnection ( CustomerGroupTableMap :: DATABASE_NAME ) ; } $ con -> beginTransaction ( ) ; try { $ prev = $ this -> getPrevious ( $ con ) ; $ this -> swapWith ( $ prev , $ con ) ; $ con -> commit ( ) ; return $ this ; } catch ( Exception $ e ) { $ con -> rollback ( ) ; throw $ e ; } }
docstring: Move the object higher in the list, i.e. exchanges its rank with the one of the previous object
  
  @param     ConnectionInterface $con optional connection
  
  @return    ChildCustomerGroup the current object
docstring_tokens: Move the object higher in the list i . e . exchanges its rank with the one of the previous object