Snippet: Symfony & Propel - Queries with SQL functions

This is a super short snippet that I ALWAYS forget how to do! Often I want to build more complex where clauses with Propel Criteria [http://www.propelorm.org/wiki/Development/Criteria] which use SQL functions such as UCASE, LCASE, LEN and the date functions DAY, MONTH and YEAR. This…

Snippet: Creating & Debugging Complex SQL queries in Symfony

When working with large and complex datasets in Symfony, there comes a point where the ORM layer (Propel or Doctrine) causes more problems than it solves. Sometimes it's necessary to debug large SQL queries built using the ORM layer, and at other times it'sĀ appropriate to…