symfony 1.4: recreating the database from new schema
I'm trying to recreate the database from a new schema, but I keep getting the same error Invalid default value for ...
I've changed the schema.yml so many times even removed the value that is causing this error, but it still shows. I'm still getting the same error no matter what I do.
I use php symfony doctrine:build --all --and-load
but the schema.sql that gets generated is the same every time. I've deleted it, but somehow it has an idea of what the schema is that is different from the schema.yml that I'm editing.
I've tried Emptying the cache symfony cc
and deleting the sql folder under data, and it' not working.
Any ideas ???
---edit---
I ju开发者_运维百科st realized that the database gets generated properly, but the build instruction gives me the same error unless I actually have an error in the schema.yml syntax
Try running doctrine:clean-model-files
. It will delete all generated model classes for models which no longer exist in your YAML schema.
精彩评论