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

not() public method

Example: $q = $dbHandler->createSelectQuery(); $e = $q->expr; $q->select( '*' )->from( 'table' ) ->where( $e->eq( 'id', $e->not( 'null' ) ) );
public not ( string $expression ) : string
$expression string
return string a logical expression
    public function not($expression)
    {
        return "NOT ( {$expression} )";
    }