I have a raw sql query I need to run, but the database name changes in each environment (live: db, dev db_test)
I need to get the current database name from the databases.yml file.
How can I get just the current database name?
I am using the Propel ORM
Propel::getConnection()
to get a PDO connection, I think you can also do this in Symfony. – Jan Fabry