mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
Fix database name (#1364)
Co-authored-by: Simon Verwaard <[email protected]>
This commit is contained in:
co-authored by
Simon Verwaard
parent
c8f0f914e3
commit
532ae5bec3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user