Question : symfony postgresql
Answered by : abdulhakim
doctrine:
dbal: default_connection: mysql connections: mysql: url: '%env(DATABASE_URL_MYSQL)%' driver: 'pdo_mysql' server_version: '5.7' charset: utf8mb4 pgsql: url: 'pgsql://userpost:[email protected]:5432/Taller' driver: 'pdo_pgsql' server_version: '9.3' charset: utf8mb4
orm: default_entity_manager: pgsql entity_managers: mysql: connection: mysql mappings: Main: is_bundle: false type: annotation dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: Main pg: connection: pgsql mappings: Pg: is_bundle: false type: annotation dir: '%kernel.project_dir%/src/EntityPg' prefix: 'App\EntityPg' alias: Pg
Source : https://stackoverflow.com/questions/60469698/symfony-5-and-postgresql-connections | Last Update : Thu, 02 Jun 22