Previously, I was not using $model->save() function for inserting or updating any data. I was simply using createCommand() to execute query and
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:
_form input field has the proper name, and