beyondcode / invoker-community

74 stars 2 forks source link

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

Closed kwilliams-rds closed 11 months ago

kwilliams-rds commented 11 months ago

OS: darwin Invoker Version: 2.9.0 Laravel Version: 10.24.0 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/index?class=App%5CModels%5CUser&time=1695370273058&project=local-xj19gqM7hjxTWd5fdzQ3TU

Error:

Error 

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

  at /Users/williamsk/Code/willk/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1227
    1223▕     public function getDoctrineSchemaManager()
    1224▕     {
    1225▕         $connection = $this->getDoctrineConnection();
    1226▕ 
  ➜ 1227▕         return $connection->createSchemaManager();
    1228▕     }
    1229▕ 
    1230▕     /**
    1231▕      * Get the Doctrine DBAL database connection instance.

  1   phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/Factories/AttributeCollection.php:25
      Illuminate\Database\Connection::getDoctrineSchemaManager()

  2   phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/Factories/AttributeCollection.php:15
      _HumbugBoxf4b902e0e9ad\Invoker\Factories\AttributeCollection::getColumns("App\Models\User")
Screenshot 2023-09-22 at 4 11 58 AM

I have not been able to get this program running consistently. This issue has been going on for a while. I even followed the previous steps via a thread in March this year around the same issue (Marked closed/resolved). Marcel had mentioned closing Invoker and deleting the render.log as well as checking to Laravel version

My render.log file shows the following:

Screenshot 2023-09-22 at 4 25 03 AM

I have tried a range of doctrine/dbal versions with no success. I thought there may be an issue with doctrine so in my compser.json file I tried a "doctrine/dbal": "~3.5 || ~3.6.2" and then the most current stable version.

Screenshot 2023-09-22 at 4 28 27 AM

Perhaps some steps to try and reproduce:

Any help would be appreciated. Thank you.

mechelon commented 11 months ago

Can you please update Invoker to 2.13.1? This version fixed the problem.

kwilliams-rds commented 11 months ago

Thank you.