I need to filter in doctrine through multiple fields like the following:
SELECT company , state
FROM employees
WHERE
(company, state) <> ('xxxxx', 'xxxx')
AND
(company, state) <> ('xxxx', 'xxxx')
GROUP BY company, state
I tried the following way:
$qb->andWhere($qb->expr()->andX($qb->expr()->neq('b.company',"'".$i['description']."'"), $qb->expr()->neq('b.state', "'".$i['state']."'")));
But the result is not the desired:
(company <> 'xxxxx' AND state <> 'xxxx') AND (company <> 'xxxxx' AND state <> 'xxxxx')
How can i do the first via doctrine? regards!