如何调试Propel ORM对象查询?这是一个示例查询:
$obj = TableNameQuery::create()
->filterBy('ColumnName')
->find();
答案 0 :(得分:0)
用于调试推进orm查询,例如你的代码是$obj = TableNameQuery::create() ->filterBy('ColumnName') ->find();
现在你可以编写它来调试它。$returnArr = array();
$obj = TableNameQuery::create()->filterBy('Columnname')->toString();
$returnArr['response']=$obj;
return $returnArr;