I have a complex data structure that means I have not been able to fully use relationships defined in schema.yml for my model.
Now I have some reporting queries which need to use tables from several databases.
Because of the complexity of the model these queries are written in raw sql. So I need to use the database names in the query in order to select the correct databases for various tables.
I am using symfony 1.4 and Doctrine 1.2
How can I extract the database names for my current environment (Prod, Dev, Test etc) from databases.yml in order to use them in the raw sql queries?
DoctrineManager
has is here: tig12.net/downloads/apidocs/symfony/lib/plugins/… – Marek Sebera