2011/1/10 Venzon <[email protected]>:
> Hi
> From PR4 release i have poblem with getting more connections then
> default one.
> Here is my config.yml:
>
> doctrine.dbal:
>    charset: UTF-8
>    default_connection: default
>    connections:
>        default:
>            dbname: db1
>            user: root
>            password:
>            host: localhost
>            port: ~
>        conn1:
>            dbname: db1
>            user: root
>            password:
>            host: localhost
>            port: ~
>        conn2:
>            dbname: db2
>            user: root
>            password:
>            host: localhost
>            port: ~

Seems like the YAML should be configured in a different way.

Try: https://gist.github.com/772762

Look a the extension for the DIC: https://gist.github.com/772763
When looking for multiple connections it looks for the ID.

>
> doctrine.orm:
>    auto_generate_proxy_classes: %kernel.debug%
>    mappings:
>        HelloBundle: ~
>    default_entity_manager: conn1
>    default_database: conn1
>    entity_managers:
>        default:
>            connection: conn1
>        conn1:
>            connection: conn1
>        conn2:
>            connection: conn2
>
> there is no way i can get conn2 by:
> $this->get('doctrine.dbal.conn2_connection');
> i dont have only method to retrieve conn1 in my
> appDevDebugProjectContainer class in cache
>
> can anyone tell me how to handle multiple db connections since PR4?
>
> Regards
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Nadalin Alessandro
www.odino.org
www.twitter.com/_odino_

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to