I have an entity and i'm trying to create the following function inside its repository
function customGet(array $criteria)
{
//WHAT I'm trying to do:
//SELECT *
//FROM mytable
//LEFT JOIN anothoer table
//WHERE criteria1 = value1 AND criteria2 = value2 ...etc
$q = $this
->createQueryBuilder('u')
->select('u, g')
->leftJoin('u.theOtherTable', 'g');
//Where here
->getQuery();
}
How can i do the where clause?