문제

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 just 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top