Enhanced the default implementation of Model::scenarios() to return all scenarios found in rules().
Enhanced the default implementation of Model::scenarios() to return all scenarios found in rules().

yiisoft/yii2-framework,yiisoft/yii2-framework