B
B
BonBon Slick2018-07-14 17:48:34
Doctrine ORM
BonBon Slick, 2018-07-14 17:48:34

PdoSessionHandler Database not found?

I'm not sure yet what caused this, I did everything according to the dock, identically.
https://symfony.com/doc/current/doctrine/pdo_sessi...
Connecting to pgsql is happening

<service id="Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler" public="false">
                <argument>pgsql:dbname=test, host=localhost</argument>
                <argument type="collection">
                    <argument key="db_username">%app.database_user%</argument>
                    <argument key="db_password">%app.database_password%</argument>
                </argument>
            </service>

However, it gives an error that there is no such database. Strange, PhpStorm finds everything, executes requests, the console also works.
In theory, this has already been fixed, but the error is that there is no database with Doctrine 2.6 version
https://github.com/doctrine/dbal/pull/2671

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BonBon Slick, 2018-08-30
@BonBonSlick

1 - order
2 - it was necessary to specify the exact port
Without this, it did not work.
It's missing from the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question