Technically a duplicate of PR #292 but with tests included.
Essentially, purging the database in DELETE mode prior to fixture load fails if any fixture entities use tables names with reserved words (e.g. 'User' in Postgres, or in the test case 'Group' in sqlite). The change makes ORMPurger->getTableName() use the same method as AbstractPlatform::getTruncateTableSQL() uses to get the table name (quoted as necessary).
Test case uses sqlite reserved word 'Group' as an example and checks returned table name is quoted correctly.
Technically a duplicate of PR #292 but with tests included.
Essentially, purging the database in DELETE mode prior to fixture load fails if any fixture entities use tables names with reserved words (e.g. 'User' in Postgres, or in the test case 'Group' in sqlite). The change makes ORMPurger->getTableName() use the same method as AbstractPlatform::getTruncateTableSQL() uses to get the table name (quoted as necessary).
Test case uses sqlite reserved word 'Group' as an example and checks returned table name is quoted correctly.
Closes #292