通过CakePHP中的查询生成器使用json postgresql数据类型的最佳方法是什么?

the*_*enz 5 php postgresql json cakephp

我还没有找到一种方法来使用PostgreSQL的JSON运营商->->>等等。

我希望能够以这种方式使用它们:

$this->MyModel->find('all', array('conditions'=>array("jsonfield->'key'"=>"value")

但这会导致如下错误:

Error: SQLSTATE[42703]: Undefined column: 7 ERROR: column MyModel.jsonfield->'key' does not exist LINE 1