我有这样的数组
$conditions = array("Post.title" => "This is a post");
并在此方法中使用$conditions数组。
$this->Post->find('first', array('conditions' => $conditions));
我想将 $conditions 数组转换为普通的 sql 查询。我要使用
$this->Post->query($converted_query);
代替
$this->Post->find('first', array('conditions' => $conditions));