View Zend_Db_Select query
Saw something in #zftalk that could be considered a no-brainer, but since the question was posed I’ll reproduce the answer here.
Rather than turning on the profiler to see what kind of query is being generated, use the __toString() magic method.
This should produce something like:
Fanatic programmer, obsessive technophile, serial entrepreneur and Web 2.0 enthusiast. Zed23.com is the personal blog of Ryan Brooks, a Web Application Developer out of Calgary, Alberta.
Eric Coleman
March 31st, 2008 at 3:39 pm
No need even for that __toString()…
echo $select works fine… it’s how the magic method is intended to be used.
Type-casting works too if you want to var_dump the variable, ala:
var_dump((string) $select);