Skip to content

Commit

Permalink
Fix database name (#1364)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Verwaard <simon@bttr.nl>
  • Loading branch information
sforward and sforward authored Aug 13, 2022
1 parent c8f0f91 commit 532ae5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/ModelsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ protected function getTypeOverride($type)
*/
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();
Expand Down

0 comments on commit 532ae5b

Please sign in to comment.