What is DQL findBy()
query syntax?
Like this: $this->getDoctrine()->getRepository("AppBundle:Users")->findBy($queryWhere);
It will create criteria for WHERE CLAUSE
$repository->findBy(['email' => 'test@test.com', 'city' => 'Berlin'])
SELECT * FROM table WHERE email = "test@test.com" AND city = "Berlin"
if you are interested, you can take a look in the method getSelectSQL
under the following link