Avoid logging db errors repeatedly.
Merge branch 'master' of github.com:yiisoft/yii2
Fixed the issue that ActiveQuery::one() doesn't bring back related objects when asArray is true.