Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

Symfony 4.4 : could not find driver when make:entity relation field but php -m show active driver pdo_pgsql

$
0
0

I need to add to my entity Agency, a relation to the Country entity. When I run php bin/console make:entity Agency I can add string fields, int fields, etc... But when I wan to add my country field with type relation, Doctrine shows up an error :

In PDOConnection.php line 31:

could not find driver

In PDOConnection.php line 27:

could not find driver

I looked in my php.ini to see which driver what active by running php -m and my driver pdo_pgsql is active.

In my doctrine.yaml file :

doctrine:    dbal:        default_connection: default        connections:            default:                url: '%env(resolve:DATABASE_URL)%'                driver: 'pdo_pgsql'                server_version: '15.1'

I really don't see what am I doing wrong... Do you have any idea?

Thanks


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>