public function moveToBottom(ConnectionInterface $con = null)
    {
        if ($this->isLast($con)) {
            return false;
        }
        if (null === $con) {
            $con = Propel::getServiceContainer()->getWriteConnection(CustomerGroupTableMap::DATABASE_NAME);
        }
        $con->beginTransaction();
        try {
            $bottom = ChildCustomerGroupQuery::create()->getMaxRankArray($con);
            $res = $this->moveToRank($bottom, $con);
            $con->commit();

            return $res;
        } catch (Exception $e) {
            $con->rollback();
            throw $e;
        }
    }
public function moveToBottom(ConnectionInterface $con = null)
    {
        if ($this->isLast($con)) {
            return false;
        }
        if (null === $con) {
            $con = Propel::getServiceContainer()->getWriteConnection(CustomerGroupTableMap::DATABASE_NAME);
        }
        $con->beginTransaction();
        try {
            $bottom = ChildCustomerGroupQuery::create()->getMaxRankArray($con);
            $res = $this->moveToRank($bottom, $con);
            $con->commit();

            return $res;
        } catch (Exception $e) {
            $con->rollback();
            throw $e;
        }
    }
public function moveToBottom ( ConnectionInterface $ con = null ) { if ( $ this -> isLast ( $ con ) ) { return false ; } if ( null === $ con ) { $ con = Propel :: getServiceContainer ( ) -> getWriteConnection ( CustomerGroupTableMap :: DATABASE_NAME ) ; } $ con -> beginTransaction ( ) ; try { $ bottom = ChildCustomerGroupQuery :: create ( ) -> getMaxRankArray ( $ con ) ; $ res = $ this -> moveToRank ( $ bottom , $ con ) ; $ con -> commit ( ) ; return $ res ; } catch ( Exception $ e ) { $ con -> rollback ( ) ; throw $ e ; } }
Move the object to the bottom of the list

@param     ConnectionInterface $con optional connection

@return integer the old object's rank
Move the object to the bottom of the list