-
Notifications
You must be signed in to change notification settings - Fork 29
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
Call to undefined method app\models\User::find() #18
Comments
You have a typo in config, you need use ' \dektrium\user\models\User' class and need point same class for 'user' component. For ex: 'user' => [
'identityClass' => ' \dektrium\user\models\User'
] |
Thank you for the response. However, it still does not work. Call to undefined method app\models\User::find() But there is not app\models\User entry in the config anymore. My 'complete' user config is: And now I am lost. What do I have to change to get artkost working? |
Thanks, i check it soon |
Hello, Cheers |
No. I stopped using this module. |
If you use dektrium you need: |
Thank you for writing this module. It gives me a great example for my own project. I am learning a lot of it.
However, I do have problem.
If I lookup an answer I get the error:
Call to undefined method app\models\User::find()
Everything else is working fine.
On http://www.yiiframework.com/forum/index.php/topic/58356-call-to-undefined-method-appmodelsuserfind/
the answer is to: Try extending from yii\db\ActiveRecord instead.
That do I have to change in the code to solve this problem?
My config is:
That is I am using the dektrium user class.
The text was updated successfully, but these errors were encountered: