【发布时间】:2018-08-04 13:21:42
【问题描述】:
我正在 Doctrine 中尝试 REGEXP 在 https://stackoverflow.com/a/26195280/1179841 找到这种情况 WHERE CONCAT(",", setcolumn, ",") REGEXP ",(val1|val2|val3),"。我在config.yml 中添加了这个
orm:
dql:
string_functions:
regexp: DoctrineExtensions\Query\Mysql\Regexp
但是我仍然收到错误:
[2/2] QueryException: [Syntax Error] line 0, col 790: Error: Expected =, , >, >=, !=, got 'REGEXP'
我在composer.json 中使用"beberlei/DoctrineExtensions": "1.0.*"。有什么想法吗?
【问题讨论】: