我有一个MySQL日期存储在DATETIME格式。所以我想知道如何在我的Doctrine QueryBuilder的where
子句中使用date()
。例如,2013-02-01 12:51:17
是MySQL中的日期。但我只需要检索日期。这是我曾尝试:你的where子句中在Doctrine QueryBuilder中的MySQL DATETIME的Retreive date
QueryException: [Syntax Error]: Error: Expected Doctrine\ORM\Query\Lexer::T_OPEN_PARENTHESIS, got 'date'
https://stackoverflow.com/questions/25883616/how-can-i-use-date-in-doctrine-2-dql – Cerad