cakephp new field not saving

前端 未结 10 621
渐次进展
渐次进展 2021-02-02 14:43

How to you extend a cakePHP project so it can use a new field in the database?

I just given a CakePHP Project that I am trying to extend the model to include a new field

10条回答
  •  别跟我提以往
    2021-02-02 15:12

    Quite a bit later, but I was looking for a way to do this today in Cake 3.x. Easiest way, imo:

    bin/cake orm_cache build
    

    which will rebuild the cache w/ the current db structure.

    Or to just clear w/o rebuild:

    bin/cake orm_cache clear
    

    http://book.cakephp.org/3.0/en/console-and-shells/orm-cache.html

提交回复
热议问题