title: Yii2: Setting default values for all fields of a model
body: <p>I'm trying to find a way to set a default value for any field (not filled by user input) in Yii2 as to avoid a "Cannot be NULL" database exception.</p>
  
  <p>Is there any way that this could be done?</p>
  
  <p>Cheers.</p>