src/Repository/Job.php
public function createQueryBuilder($isDeleted = false)
    {
        $qb =  parent::createQueryBuilder();

        if (null !== $isDeleted) {
            $qb->addAnd(
               $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
                          ->addOr($qb->expr()->field('isDeleted')->exists(false))
            );
        }

        return $qb;
    }
public function createQueryBuilder($isDeleted = false)
    {
        $qb =  parent::createQueryBuilder();

        if (null !== $isDeleted) {
            $qb->addAnd(
               $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
                          ->addOr($qb->expr()->field('isDeleted')->exists(false))
            );
        }

        return $qb;
    }
public function createQueryBuilder ( $ isDeleted = false ) { $ qb = parent :: createQueryBuilder ( ) ; if ( null !== $ isDeleted ) { $ qb -> addAnd ( $ qb -> expr ( ) -> addOr ( $ qb -> expr ( ) -> field ( 'isDeleted' ) -> equals ( $ isDeleted ) ) -> addOr ( $ qb -> expr ( ) -> field ( 'isDeleted' ) -> exists ( false ) ) ) ; } return $ qb ; }
Create a query builder instance.

@param bool $isDeleted Value of the isDeleted flag. Pass "null" to ignore this field.

@return Query\Builder
Create a query builder instance .