public function getNext(ConnectionInterface $con = null)
    {

        $query = ChildCustomerGroupQuery::create();

        $query->filterByRank($this->getPosition() + 1);


        return $query->findOne($con);
    }
public function getNext(ConnectionInterface $con = null)
    {

        $query = ChildCustomerGroupQuery::create();

        $query->filterByRank($this->getPosition() + 1);


        return $query->findOne($con);
    }
public function getNext ( ConnectionInterface $ con = null ) { $ query = ChildCustomerGroupQuery :: create ( ) ; $ query -> filterByRank ( $ this -> getPosition ( ) + 1 ) ; return $ query -> findOne ( $ con ) ; }
Get the next item in the list, i.e. the one for which rank is immediately higher

@param     ConnectionInterface  $con      optional connection

@return    ChildCustomerGroup
Get the next item in the list i . e . the one for which rank is immediately higher