Alexander Makarov

Results 1732 comments of Alexander Makarov

Will apply to 2.2.0. Thanks!

That's a bit werid behavior for a mongodb driver. A check for empty collection won't hurt anyway.

@schmunk42 the issue was that ``` [['parent_id'], 'default', 'value' => null],

@cebe https://github.com/yiisoft/yii2/issues/12388#issuecomment-243246932

Thinking more about it... @uldisn what's the use case for having explicit `default` rules if they match database ones? As far as I know, database silently uses default when value...

Isn't it better not to generate `required` rule in this case?

> Currently my know problem is with require, but other problems can occur. Any examples? > create method "loadDefaultValues()" - useful for new record before showing in form. https://www.yiiframework.com/doc/api/2.0/yii-db-activerecord#loadDefaultValues()-detail is...

#335 seems to have another pull request https://github.com/yiisoft/yii2-gii/pull/421/files

Can you downgrade and check it?