protected function _getUpdateExpression($direction = '+')
    {
        $field = $this->_config['order'];

        return $this->_table->query()->newExpr()
            ->add(new IdentifierExpression($field))
            ->add('1')
            ->setConjunction($direction);
    }
protected function _getUpdateExpression($direction = '+')
    {
        $field = $this->_config['order'];

        return $this->_table->query()->newExpr()
            ->add(new IdentifierExpression($field))
            ->add('1')
            ->setConjunction($direction);
    }
protected function _getUpdateExpression ( $ direction = '+' ) { $ field = $ this -> _config [ 'order' ] ; return $ this -> _table -> query ( ) -> newExpr ( ) -> add ( new IdentifierExpression ( $ field ) ) -> add ( '1' ) -> setConjunction ( $ direction ) ; }
Returns the update expression for the order field.

@param string $direction Whether to increment or decrement the field.

@return \Cake\Database\Expression\QueryExpression QueryExpression to modify the order field
Returns the update expression for the order field .