You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Any ideas?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: