有没有办法在doctrine2中使用mysql二元运算符?

时间:2022-09-15 19:51:11

is there any way to do a binary comparison in doctrine? or do i have to build my own DQL query?

有没有办法在学说中进行二元比较?或者我是否必须构建自己的DQL查询?

like the mysql binary operator ( reference: http://dev.mysql.com/doc/refman/5.7/en/charset-binary-op.html )

像mysql二元运算符(参考:http://dev.mysql.com/doc/refman/5.7/en/charset-binary-op.html)

1 个解决方案

#1


1  

Doctrine does not have BINARY function see the docs

Doctrine没有BINARY函数,请参阅docs

But you can implement NativeQuery native query docs

但是您可以实现NativeQuery本机查询文档

#1


1  

Doctrine does not have BINARY function see the docs

Doctrine没有BINARY函数,请参阅docs

But you can implement NativeQuery native query docs

但是您可以实现NativeQuery本机查询文档