Skip to content

Commit

Permalink
cascade truncation to other entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégoire Paris committed Mar 18, 2015
1 parent 7d52e77 commit c579cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ddeboer/DataImport/Writer/DoctrineWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ protected function truncateTable()
{
$tableName = $this->entityMetadata->table['name'];
$connection = $this->entityManager->getConnection();
$query = $connection->getDatabasePlatform()->getTruncateTableSQL($tableName);
$query = $connection->getDatabasePlatform()->getTruncateTableSQL($tableName, true);
$connection->executeQuery($query);
}

Expand Down

0 comments on commit c579cf4

Please sign in to comment.