reliese / laravel

Reliese Laravel Model Generator
MIT License
1.49k stars 317 forks source link

Don't work realease/laravel #280

Closed egv83 closed 5 months ago

egv83 commented 6 months ago

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 commented 6 months ago

https://github.com/reliese/laravel/issues/273#issuecomment-2016756918 😄

finiteinfinity commented 5 months ago

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