Skip to content

Commit 532ae5b

Browse files
sforwardsforward
andauthored
Fix database name (#1364)
Co-authored-by: Simon Verwaard <simon@bttr.nl>
1 parent c8f0f91 commit 532ae5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ protected function getTypeOverride($type)
463463
*/
464464
public function getPropertiesFromTable($model)
465465
{
466-
$database = $model->getConnection()->getName();
466+
$database = $model->getConnection()->getDatabaseName();
467467
$table = $model->getConnection()->getTablePrefix() . $model->getTable();
468468
$schema = $model->getConnection()->getDoctrineSchemaManager();
469469
$databasePlatform = $schema->getDatabasePlatform();

0 commit comments

Comments
 (0)