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
Hi! I configured some events with basic Comment model. When I was trying to edit existing comment I have got Error "Class name must be a valid object or a string".
For example, with this code "edit comment" don't working:
Hi! I configured some events with basic Comment model. When I was trying to edit existing comment I have got Error "Class name must be a valid object or a string".
For example, with this code "edit comment" don't working:
'comments' => [
'class' => 'rmrevin\yii\module\Comments\Module',
'userIdentityClass' => 'frontend\models\User',
'useRbac' => false,
'modelMap' => [
'Comment' => [
'class' => 'rmrevin\yii\module\Comments\models\Comment',
'on ' . yii\db\ActiveRecord::EVENT_INIT => function($event) {
print_r($event->sender);
},
],
],
],
The text was updated successfully, but these errors were encountered: