model->save() Not Working In Yii2

后端 未结 10 1548
情歌与酒
情歌与酒 2020-12-06 01:10

Previously, I was not using $model->save() function for inserting or updating any data. I was simply using createCommand() to execute query and

10条回答
  •  萌比男神i
    2020-12-06 01:54

    The other solution mentioned $model->save(false);. That is just a temporary workaround, and you should still find the actual reason why the save functionality is not working.

    Here are additional steps to help diagnose the actual issue:

    1. check that _form input field has the proper name, and
    2. check that if you have added any dropdown functionality, then check whether it's working properly or not

提交回复
热议问题