【发布时间】:2014-07-10 04:43:23
【问题描述】:
我正在尝试使用带有绑定参数的 Phalcon\Mvc\Model\Query 制作LIKE '%something%'。
有什么办法吗?
这对我不起作用:
$robots = Robots::query()
->where("type LIKE :type:")
->andWhere("year < 2000")
->bind(array("type" => "mechanical"))
->order("name")
->execute();
【问题讨论】: