开发者

PropelException: Unable to execute UPDATE statement ... [wrapped: Cannot fetch ColumnMap for undefined column: ...]

开发者 https://www.devze.com 2023-03-03 15:50 出处:网络
I have an odd problem with propel in symfony. I\'ve found a few similar questions here but none of the answers was helpful unfortunately.

I have an odd problem with propel in symfony. I've found a few similar questions here but none of the answers was helpful unfortunately.

So, I've added a new attribute into a db table, changed the schema and regenerated the model classes, and now when I try to save the form it shows an error message: "PropelException: Unable to execute UPDATE statement ... [wrapped: Cannot fetch ColumnMap for un开发者_如何学Godefined column: ...]"

The new field is for sure in the schema.yml file, it actually has been generated using "symfony propel:build-schema" and there should be no problem. I also checked the code of the Base model files and the Table files and the new field is there too. It goes without saying that I did clear the cache. I also tried using different names for that field with no luck.

What can be causing it? What is ColumnMap and where can I see it?

0

精彩评论

暂无评论...
验证码 换一张
取 消