I have exactly the same question as asked before, but the last question is 6 years old and new Doctrine versions exist, so I am now asking this in reference to the latest version of Doctrine.
I have table Test:
Test:
id | name
1 | aaa
2 |
3 | ccc
4 | aaa
5 |
6 | ddd
I want result where name is NOT NULL:
aaa
ccc
aaa
ddd
This syntax doesn't work:
$em->getRepository('Test')->findBy(array('name' => notnull));
Is there something similar that will work using the findBy syntax?