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

Don't work realease/laravel #280

Closed
egv83 opened this issue May 19, 2024 · 2 comments
Closed

Don't work realease/laravel #280

egv83 opened this issue May 19, 2024 · 2 comments

Comments

@egv83
Copy link

egv83 commented May 19, 2024

Hi, to day I try to generate a model by my BDD mysql but some error show me and it can't generated when I use 2 commands php artisan code:models and second specifying the schema php artisan code:models --schema=nexus in two times this is the error

PS C:\xampp\htdocs\nexus> php artisan code:models --schema=nexus

BadMethodCallException

Method Illuminate\Database\MySqlConnection::getDoctrineSchemaManager does not exist.

at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:112
108▕ */
109▕ public function __call($method, $parameters)
110▕ {
111▕ if (! static::hasMacro($method)) {
➜ 112▕ throw new BadMethodCallException(sprintf(
113▕ 'Method %s::%s does not exist.', static::class, $method
114▕ ));
115▕ }
116▕

i Bad Method Call: Did you mean Illuminate\Database\MySqlConnection::getSchemaGrammar() ?

1 vendor\reliese\laravel\src\Meta\MySql\Schema.php:273

2 [internal]:0
Reliese\Meta\MySql\Schema::schemas(Object(Illuminate\Database\MySqlConnection))

C:\xampp\htdocs\nexus> php artisan code:models --schema=nexus

BadMethodCallException

Method Illuminate\Database\MySqlConnection::getDoctrineSchemaManager does not exist.

at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:112
108▕ */
109▕ public function __call($method, $parameters)
110▕ {
111▕ if (! static::hasMacro($method)) {
➜ 112▕ throw new BadMethodCallException(sprintf(
113▕ 'Method %s::%s does not exist.', static::class, $method
114▕ ));
115▕ }
116▕

i Bad Method Call: Did you mean Illuminate\Database\MySqlConnection::getSchemaGrammar() ?

1 vendor\reliese\laravel\src\Meta\MySql\Schema.php:273
Illuminate\Database\Connection::__call("getDoctrineSchemaManager", [])

2 [internal]:0
Reliese\Meta\MySql\Schema::schemas(Object(Illuminate\Database\MySqlConnection))

@Robpizza
Copy link

#273 (comment)
😄

@finiteinfinity
Copy link
Contributor

This should be fixed by #208. Please feel to open another issue if you're still having problems.

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

3 participants