symfony1 - symfony is hallucinating connection name -


here config/databases.yml:

all:   galapagos:     class: sfdoctrinedatabase     param:       dsn:      mysql:host=localhost;dbname=galapagos       username: galapagos       password: u88rnh9#g #  survey: #    class: sfdoctrinedatabase #    param: #      dsn:      mysql:host=localhost;dbname=survey #      username: survey #      password: u88rnh9#s 

as can see, there's 1 connection that's not commented out.

if delete in cache/ , log/ , run symfony doctrine:build-schema , symfony doctrine:build --all-classes, error:

unknown connection: survey 

but i'm not mentioning survey anywhere!

my schema doesn't mention survey:

$ cat config/doctrine/schema.yml | grep survey $ 

interestingly, don't error if run build-model. error apparently happens build-forms , build-filters.

why happening?

you need remove corresponding doctrine_schema_xxxx.yml files in /tmp directory well.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -