umbrellio / laravel-pg-extensions

Laravel extensions for Postgres
MIT License
90 stars 18 forks source link

Cannot resolve PostgresConnection in Laravel11.x #89

Closed fuwasegu closed 2 months ago

fuwasegu commented 2 months ago

As per pull request #48864 in Laravel, Laravel has abandoned its dependency on DBAL (Database Abstraction Layer) during the migration to 11.x. In the process, methods related to Doctrine that were implemented in Illuminate\Database\Connection::class have also been removed. Although this library was recently updated to support Laravel 11.x and its major version was bumped to 6, it still seems to be using methods like DB::registerDoctrineType(), which suggests that it has not actually followed the changes made in Laravel 11.x.

The issue is that non-existent methods continue to be called from the DB Facade, causing the resolution of the Connection to recurse infinitely, which leads to the processing getting stuck.

Thanks.

pvsaintpe commented 2 months ago

Fixed in version 7.0.1

mpyw commented 2 months ago

This looks to be not sufficient, actually fixed in forked fuwasegu/laravel-pg-extensions-next

pvsaintpe commented 1 month ago

@mpyw

Please, send pull request into mi repo with the fix. Thank you.