I have the following piece of code which i taken from model,
...
$select = $this->_db->select()
->from($th
This one's from Zend Framework documentation (ie. UPDATE):
echo $update->getSqlString();
(Bonus) I use this one in my own model files:
echo $this->tableGateway->getSql()->getSqlstringForSqlObject($select);
Have a nice day :)
Use this:-
echo $select->query();
or
Zend_Debug::dump($select->query();