doctrine / data-fixtures

Doctrine2 ORM Data Fixtures Extensions
http://www.doctrine-project.org
MIT License
2.78k stars 224 forks source link

Quote tables properly when using delete mode #292

Closed bendavies closed 4 years ago

bendavies commented 6 years ago

This changes getTableName to use the same method for quoting the table name as $platform->getTruncateTableSQL(...).

This fixes the case where you have a table name which is a reserved word.

versgui commented 5 years ago

A merge would be welcome. For example, an error is triggered by Postgresql on a table called "group".

stephen-lewis commented 4 years ago

I've created an alternative PR #334 that fixes this issue and includes tests.