Yii2 mongodb error Object configuration must be an array containing a "class" element
Yii2 mongodb error Object configuration must be an array containing a "class" element mongodb
mongodb
Make sure the ActiveRecord object you are using (the one in static::findOne(...)) is an instance of yii\mongodb\ActiveRecord and notyii\db\ActiveRecord because the latter uses standard db component I assume you have not got configured.