在D2.1,QueryBuilder的,我如何使用MySQL的一週功能的一天,我不認爲它提供學說2.1 - DAYOFWEEK函數的替代?
doctrine but isnt there a way i could otherwise?
$qb->select('p')
->where('YEAR(p.postDate) = :year')
->andWhere('MONTH(p.postDate) = :month')
->andWhere('DAYOFWEEK(p.postDate) = :dayOfWeek');