Skip to content

Commit

Permalink
Merge pull request #23 from robertfausk/circular_dependency_exception…
Browse files Browse the repository at this point in the history
…_only_for_used_tables

Throw CircularDependencyException only for included tables #18
  • Loading branch information
digilist authored Nov 16, 2019
2 parents 31316a7 + c9da4be commit f180e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dumper/Sql/TableSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public function findTablesToDump(DumperConfigurationInterface $config)
$tables = $schemaManager->listTables();
$this->createMissingTableConfigs($config, $tables);

$tables = $this->tableDependencyResolver->sortTablesByDependencies($tables);
$this->tableDependencyResolver->createDependentFilters($tables, $config);

$filter = new TableFilter($config);
$tables = $filter->filterWhiteListTables($tables);
$tables = $filter->filterIgnoredTables($tables);

$tables = $this->tableDependencyResolver->sortTablesByDependencies($tables);
$this->tableDependencyResolver->createDependentFilters($tables, $config);

// Quote all identifiers, as Doctrine DBAL only quotes reserved keywords by default
$tables = $this->identifierQuoter->quoteTables($tables);

Expand Down

0 comments on commit f180e54

Please sign in to comment.