Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting unknown property: thyseus\message\Module::modelClass #2

Closed
gajen0981 opened this issue Apr 10, 2017 · 4 comments
Closed

Setting unknown property: thyseus\message\Module::modelClass #2

gajen0981 opened this issue Apr 10, 2017 · 4 comments

Comments

@gajen0981
Copy link

Getting a error when when user navigate to inbox route - frontend/web/message/message/inbox
I am using Dektrium user module where I have extended their user model to add custom field so the the user class is in frontend\models\User.

// Messaging
'message' => [
'class' => 'thyseus\message\Module',
'modelClass' => 'frontend\models\User', // optional. your User model. Needs to be ActiveRecord.
],

@gajen0981
Copy link
Author

Found the error with the config and how the user model class is referenced by this library "userModelClass" and not "modelClass". So the following works.

image

@thyseus
Copy link
Owner

thyseus commented Apr 12, 2017

Hey, was just about to answer you. Glad you found the problem already.

In the future i want to make the message system to be working also without ActiveRecord. Goal will be that the module can be used with the yii2-basic-app. The work shouldn´t be too much but i can not promise a time for this at the moment.

Enjoy the module :)

@thyseus thyseus closed this as completed Apr 12, 2017
@thyseus
Copy link
Owner

thyseus commented Apr 12, 2017

Also see #3

@gajen0981
Copy link
Author

Thank you for the awesome work!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants