Is there any workaround in order to use this behavior with MongoDB based ActiveRecord?
I'm getting this error in Chrome network tab when using any of the control buttons in sortable column of GridView.
"Valid ActiveRecord model class must be specified in order to find model."
I tried to bypass the above error by changing the SortController->beforeAction() in order to check also for yii\mongodb\ActiveRecord, but then I am getting the following error:
So it seems to me that the addSelect() method is not implemented in mongodb ActiveQuery and prevents using the behavior with mongo (but works fine with yii\db\ActiveRecord).
Is there any workaround in order to use this behavior with MongoDB based ActiveRecord?
I'm getting this error in Chrome network tab when using any of the control buttons in sortable column of GridView.
"Valid ActiveRecord model class must be specified in order to find model."
I tried to bypass the above error by changing the SortController->beforeAction() in order to check also for yii\mongodb\ActiveRecord, but then I am getting the following error:
"Calling unknown method: yii\mongodb\ActiveQuery::addSelect()"
So it seems to me that the addSelect() method is not implemented in mongodb ActiveQuery and prevents using the behavior with mongo (but works fine with yii\db\ActiveRecord).
Any ideas?