Avoid logging db errors repeatedly.
Fixed the issue that ActiveQuery::one() doesn't bring back related objects when asArray is true.
Renamed DataColumn::type to format. Added GridView::dataColumnClass.