Mezatsong / laravel-swagger-docs

MIT License
19 stars 8 forks source link

Method Illuminate\Database\PostgresConnection::getDoctrineColumn does not exist. #20

Open rdizio opened 7 months ago

rdizio commented 7 months ago

Hi, I'm exploring some swagger packages, and I think this is a really good idea since this package explores the rules from the Laravel request automatically and adds that to the docs; however, when I try the package. I'm getting this error:

[2024-04-09 17:29:49] local.ERROR: Method Illuminate\Database\PostgresConnection::getDoctrineColumn does not exist. {"exception":"[object] (BadMethodCallException(code: 0): Method Illuminate\Database\PostgresConnection::getDoctrineColumn does not exist. at /Users/rdizio/Bitbucket/core-backend/src/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:112) [stacktrace]

0 /Users/rdizio/Bitbucket/core-backend/src/vendor/mezatsong/laravel-swagger-docs/src/Definitions/DefinitionGenerator.php(118): Illuminate\Database\Connection->__call('getDoctrineColu...', Array)

Line reference: https://github.com/Mezatsong/laravel-swagger-docs/blame/d4fe117036743b41f75c4eb94729236306253344/src/Definitions/DefinitionGenerator.php#L118

I'm currently using Laravel 11. Not sure if that function is not longer available.

Dainius-Dzialtuvas commented 6 months ago

Made a pull request to update package for laravel 11 and avoid this issue #21

hkubiak commented 3 months ago

could you take a look at it? PR seems to be good