Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Doctrine\DBAL\Connection::createSchemaManager() #1089

Open
dhsont opened this issue Nov 15, 2023 · 1 comment
Open

Comments

@dhsont
Copy link

dhsont commented Nov 15, 2023

HI
i am getting Error Call to undefined method Doctrine\DBAL\Connection::createSchemaManager()
when trying to generate scaffold from dattabase table using following command

`php artisan infyom:scaffold User --fromTable --table="users"`

Error
`
Error

        Call to undefined method Doctrine\DBAL\Connection::createSchemaManager()
      
        at vendor\laravel\framework\src\Illuminate\Database\Connection.php:1254
          1250▕     public function getDoctrineSchemaManager()
          1251▕     {
          1252▕         $connection = $this->getDoctrineConnection();
          1253▕
        ➜ 1254▕         return $connection->createSchemaManager();
          1255▕     }
          1256▕
          1257▕     /**
          1258▕      * Get the Doctrine DBAL database connection instance.
      
        1   vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:469
            Illuminate\Database\Connection::getDoctrineSchemaManager()
      
        2   vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:353
            Illuminate\Database\DatabaseManager::__call("getDoctrineSchemaManager", [])

`

I tried it with laravel 10 with following packages

"doctrine/dbal": "~2.3",
"infyomlabs/laravel-generator": "^6.0",
"infyomlabs/adminlte-templates": "^6.0"

I tried with blank laravel 10 ad infyomlab Generator but still gettigng error.

Way to reproduce is

Create new laravel project
install infyomlab generator
try to generate scaffold.

@dhsont
Copy link
Author

dhsont commented Nov 15, 2023

Issue fixed by existing solution by @ImAkPatil in #1083 (comment)_

Issue fixed by updating doctrine/dbal "doctrine/dbal": "^3.5",

Docs must be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant