0
votes

How can I debug Propel ORM object query? This is a sample query:

$obj = TableNameQuery::create()
   ->filterBy('ColumnName')
   ->find();
1
There's not a lot to go on here. What is the problem with your query, exactly? - halfer

1 Answers

0
votes

For debuging propel orm query, for example your code is $obj = TableNameQuery::create() ->filterBy('ColumnName') ->find(); Now you can write as to debug it.$returnArr = array();
$obj = TableNameQuery::create()->filterBy('Columnname')->toString(); $returnArr['response']=$obj; return $returnArr;

that all. it will show the propel query. you can view it.