for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the QueryFilterBundle package.
*
* (c) Denis Voytyuk <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Artprima\QueryFilterBundle\Query\Condition;
use Doctrine\ORM\QueryBuilder;
/**
* Class IsNull
* @author Denis Voytyuk <[email protected]>
* @package Artprima\QueryFilterBundle\Query\Condition
class IsNull implements ConditionInterface
{
public function getExpr(QueryBuilder $qb, string $field, int $index, array $val)
$expr = $qb->expr()->isNull($field);
return $expr;
}
public function getName(): string
return 'is null';