eZ\Publish\Core\Persistence\Doctrine\DoctrineExpression::sub PHP Method

sub() public method

subtract() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions. Example: $q = $dbHandler->createSelectQuery(); $q->select( '*' )->from( 'table' ) ->where( $q->expr->subtract( 'id', 2 ) );
public sub ( ) : string
return string an expression
    public function sub()
    {
        $args = func_get_args();
        return $this->basicMath('-', $args);
    }