结合变量在phalcon模型中找到methon

时间:2018-02-05 15:09:58

标签: php phalcon

我的控制器中有以下代码:

$release = $this->dispatcher->getParam("release");
$builds = Builds::find([
   "release_name = :release_var:",
   "bind" => ["release_var" => $release]
]);
$this->view->release =  $release;
$this->view->builds = $builds;

问题是构建变量是空的。仅当我更改静态字符串的变量$ release时才查询返回行,例如“release_var”=> “release_123”。 我确信release变量不为空,甚至可以从视图中访问。

我错过了什么吗?

0 个答案:

没有答案