有什么方法可以在Propel(ORM)中使用匹配语句吗? [英] Is there any way of using match against statement in Propel (ORM)?

查看:100
本文介绍了有什么方法可以在Propel(ORM)中使用匹配语句吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在Propel(ORM)中使用匹配语句吗?奇怪的是我找不到任何与此相关的东西.

Is there any way of using match against statement in Propel (ORM)? It is odd I cannot find anything related to this.

推荐答案

无直接支持.也许是自定义查询?

No direct support. Perhaps a custom query?

$con = Propel::getConnection(BookPeer::DATABASE_NAME);
$sql = "SELECT title,category FROM articles WHERE MATCH(title,category) AGAINST (:text); 
$stmt = $con->prepare($sql);
$stmt->execute(array(':text' => 'My match text'));

这篇关于有什么方法可以在Propel(ORM)中使用匹配语句吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆