Skip to content
Browse files

Merge pull request #221 from bendavies/purger-table-quoting

quoteIdentifier on table name not required when deleting
  • Loading branch information...
2 parents b4213c2 + d230cb6 commit 73c46507fc4244525a402b66fb0339d230717023 @guilhermeblanco guilhermeblanco committed May 4, 2016
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php
View
3 lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php
@@ -135,8 +135,7 @@ public function purge()
$connection = $this->em->getConnection();
foreach($orderedTables as $tbl) {
if ($this->purgeMode === self::PURGE_MODE_DELETE) {
- $tbl = $connection->quoteIdentifier($tbl);
- $connection->executeUpdate('DELETE FROM ' . $tbl );
+ $connection->executeUpdate('DELETE FROM ' . $tbl);
} else {
$connection->executeUpdate($platform->getTruncateTableSQL($tbl, true));
}

0 comments on commit 73c4650

Please sign in to comment.
Something went wrong with that request. Please try again.