Skip to content

Commit

Permalink
Fix: Attempted to call an undefined method named "introspectSchema" o…
Browse files Browse the repository at this point in the history
…f class "Doctrine\DBAL\Schema\PostgreSQLSchemaManager" (#143)
  • Loading branch information
dmitryuk committed Dec 13, 2022
1 parent d56c4c1 commit 11d5d2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Provider/Doctrine/Persistence/Schema/SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ public function getUpdateAuditSchemaSql(): array
$sqls = [];
foreach ($repository as $name => $classes) {
$storageConnection = $storageServices[$name]->getEntityManager()->getConnection();
$storageSchemaManager = $storageConnection->createSchemaManager();

$storageSchema = $storageSchemaManager->introspectSchema();
$storageSchemaManager = DoctrineHelper::createSchemaManager($storageConnection);
$storageSchema = DoctrineHelper::introspectSchema($storageSchemaManager);
$fromSchema = clone $storageSchema;

$processed = [];
Expand Down

0 comments on commit 11d5d2f

Please sign in to comment.