我有一个实体,我正在尝试在其存储库中创建以下函数
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();
}
我该怎么做where子句?