Why do I run $ model-> save () on production, while not all fields are filled and there is no default value.

On lokalhost model is not saved, it is written that there is no default value. These are some settings in Yii2? I do not understand anything. The code is the same

  • Give code example - NPreston
  • You have a rule with required there commented out well, and you have to look at the mysql settings on your production - Belikov Dmitrii
  • What kind of mysql settings? - vkovalchuk88

0