Skip to content

Doctrine database configuration error #6691

Closed
@AscanderS

Description

@AscanderS

This is a discrepancy between the Symfony book and Symfony version 2.8 (at least) which is very disturbing for someone trying Symfony with PostgreSQL for the first time.

On page http://symfony.com/doc/2.8/book/doctrine.html It is explained that setting database_driver on app/config/parameters.yml allows to choose a driver.

# app/config/parameters.yml
parameters:
    database_driver:    pdo_mysql

However, parameter database_driver is not used (at least in version 2.8) since in app/config/config.yml you find that pdo_mysql is wired:

# app/config/config.yml
doctrine:
    dbal:
        driver:   pdo_mysql

There is no intention to add a database_driver parameter (see symfony/symfony#19196), so please correct the corresponding page on the symfony book.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoctrinehasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions