Encapsulate Reserved Words in Doctrine 2 Entities

When dealing with legacy applications and moving them to Doctrine (or any ORM), you will undoubtedly encounter poorly named columns and tables in need of migration. Unfortunately in the case of Doctrine 2, the default behavior for SQL query generation fails to encapsulate the column names properly, causing syntax errors with column names like “delete”. […]