doctrine/doctrine2 — pull request #1101 by Cactucs (2014-08-08 16:29:32+00:00)
Title: Adding ` quote into INSERT SQL statement

It is not working for table names which are the same as SQL keywords (such as `order`).

Getting exception:

Doctrine\DBAL\DBALException
An exception occurred while executing 'INSERT INTO order ( ... ) VALUES ( ... )' with params [ ... ]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order ( ... , ' at line 1

Solved by adding quotes.