 <p>When using escaped table names take care about this "bug" : <a href="https://github.com/doctrine/doctrine2/pull/615" rel="nofollow">https://github.com/doctrine/doctrine2/pull/615</a> . Doctrine takes the first character of the table name as aliasprefix and thus a quote is used, crushing all your SQLs</p>