我收到此错误预期的已知功能,得到' STR_TO_DATE'
我的DQL查询:
public function findByPresta($prestataire){
$qb = $this->_em->createQueryBuilder()
->select("STR_TO_DATE(c.datepresta,'%d,%M,%Y %h%i%s')")
->from($this->_entityName,'c');
$result = $qb->getQuery()->getResult();
return $result;
}
我的Config.yml:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
datetime_functions:
date_format: Dominos\VodBundle\DQL\Mysql\DateFormat
strtodate: Dominos\VodBundle\DQL\Mysql\StrToDate
我需要帮助