In Symfony 1.2 how can I get the current database name from the database.yml file in Propel?

Posted by Failpunk on Stack Overflow See other posts from Stack Overflow or by Failpunk
Published on 2010-05-14T21:09:35Z Indexed on 2010/05/14 21:14 UTC
Read the original article Hit count: 314

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about symfony

Related posts about propel