Here is my 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 you can see, there’s just one connection that’s not commented out.
If I delete everything in cache/ and log/ and then run symfony doctrine:build-schema and symfony doctrine:build --all-classes, I get this 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, I don’t get the error if I only run build-model. The error apparently only happens for build-forms and build-filters.
Why is this happening?
Went away on its own. Stupid problem, stupid solution.