iTopiaBlog

liVe iN oRder tO lEArN

Archive for the 'propel' Category

Symfony: Propel: Criteria SQL (hibernate sql)

Wednesday, April 14th, 2010

Hi Volks,
today I had a lot of testing with the symfony criteria object. And everyone who knows about the problem to get the raw SQL query out of the criteria object.
There is a toString method, but the result just looks like this:

SELECT FROM media, media_category WHERE media.FEATURED=? AND media.MEDIATYPE IN (?,?) AND 1=1 AND [...]