Skip to content

Commit

Permalink
Local rude fix of doctrine/dbal#1110
Browse files Browse the repository at this point in the history
* Need to revert this after fixes in dbal and orm upstreams
  • Loading branch information
garex committed Aug 27, 2016
1 parent 1069ada commit 3ecc55a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Command/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function execute(InputInterface $input, OutputInterface $output)

$fromSchema = $connection->getSchemaManager()->createSchema();
$toSchema = (new OrmSchemaProvider($this->getHelper('entityManager')->getEntityManager()))->createSchema();
if ($platform->supportsSchemas()) {
$namespaceName = $platform->getDefaultSchemaName();
$toSchema->hasNamespace($namespaceName) || $toSchema->createNamespace($namespaceName);
}

// Not using value from options, because filters can be set from config.yml
if ($filterExpression = $connection->getConfiguration()->getFilterSchemaAssetsExpression()) {
Expand Down

0 comments on commit 3ecc55a

Please sign in to comment.