Skip to content

Commit 3d87dbd

Browse files
committed
Fix exception catch when deleting temporary table in the sameDatabaseChecker
1 parent d6cda62 commit 3d87dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SchemaListener/AbstractSchemaListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Bridge\Doctrine\SchemaListener;
1313

1414
use Doctrine\DBAL\Connection;
15-
use Doctrine\DBAL\Exception\TableNotFoundException;
15+
use Doctrine\DBAL\Exception\DatabaseObjectNotFoundException;
1616
use Doctrine\DBAL\Schema\Table;
1717
use Doctrine\DBAL\Types\Types;
1818
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
@@ -44,7 +44,7 @@ protected function getIsSameDatabaseChecker(Connection $connection): \Closure
4444
$schemaManager->dropTable($checkTable);
4545

4646
return false;
47-
} catch (TableNotFoundException) {
47+
} catch (DatabaseObjectNotFoundException) {
4848
return true;
4949
}
5050
};

0 commit comments

Comments
 (0)