yiisoft/yii2 — pull request #2815 by samdark (2014-03-19 14:08:21+00:00)
Title: Fixes #2726: ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema

Pros of this approach:

- No need to manually fill values.
- Defaults could be changed w/o regenerating model code.
- Consistent with how DB works.