We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

New columns dont get registered

Hello

When i create a model and a table i can save and update the columns just fine

However, if i create a new column, Phalcon can't register the column and i can't insert it. Phalcon also gives an error when trying fetch the new column, as it dosent exists.

renamed the model and it works, however, when i add an new column same error.

You need to clear your metadata.

What @Wojciech said. You probably have some metadata caching set up in your bootstrap. That's usually stored with a string key. Changing the key will force Phalcon to miss the cache, thereby causing it to regenerate the cached metadata.