tailflow / laravel-orion

The simplest way to create REST API with Laravel
https://orion.tailflow.org
MIT License
1.49k stars 89 forks source link

Laravel 11 breaks php artisan orion:spec #259

Open dragosstoenica opened 2 months ago

dragosstoenica commented 2 months ago
php artisan orion:specs

outputs

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() ?

      +20 vendor frames

  21  artisan:13
      Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

Laravel and Laravel-Orion versions

"laravel/framework": "^11.0",
"tailflow/laravel-orion": "^2.2"
alexzarbn commented 2 months ago

Hi @dragosstoenica,

Thank you for reporting this! I will look into it.

alexzarbn commented 2 months ago

The issue is related to Doctrine DBAL Removal in Laravel 11.

An updated implementation with support for native schema methods is available in v2.22.4 release.

@dragosstoenica Please let me know, if you encounter further issues with specs generation on Laravel 11.