Fix database name (#1364)

Co-authored-by: Simon Verwaard <[email protected]>
This commit is contained in:
sforward
2022-08-13 22:02:45 +02:00
committed by GitHub
co-authored by Simon Verwaard
parent c8f0f914e3
commit 532ae5bec3
+1 -1
View File
@@ -463,7 +463,7 @@ class ModelsCommand extends Command
*/
public function getPropertiesFromTable($model)
{
$database = $model->getConnection()->getName();
$database = $model->getConnection()->getDatabaseName();
$table = $model->getConnection()->getTablePrefix() . $model->getTable();
$schema = $model->getConnection()->getDoctrineSchemaManager();
$databasePlatform = $schema->getDatabasePlatform();