mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
getDoctrineSchemaManager doesn't take an argument (#1011)
AFAIK never had. See https://github.com/laravel/framework/blob/c1ec18723e763120aa4e816072beca396d298db1/src/Illuminate/Database/Connection.php#L892
This commit is contained in:
@@ -371,7 +371,7 @@ class ModelsCommand extends Command
|
|||||||
protected function getPropertiesFromTable($model)
|
protected function getPropertiesFromTable($model)
|
||||||
{
|
{
|
||||||
$table = $model->getConnection()->getTablePrefix() . $model->getTable();
|
$table = $model->getConnection()->getTablePrefix() . $model->getTable();
|
||||||
$schema = $model->getConnection()->getDoctrineSchemaManager($table);
|
$schema = $model->getConnection()->getDoctrineSchemaManager();
|
||||||
$databasePlatform = $schema->getDatabasePlatform();
|
$databasePlatform = $schema->getDatabasePlatform();
|
||||||
$databasePlatform->registerDoctrineTypeMapping('enum', 'string');
|
$databasePlatform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user