Skip to content

Call to undefined method app\models\User::find() #18

@arjenmeijer

Description

@arjenmeijer

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:

    'qa' => 'artkost\qa\Module',
    'userClass' => 'dektrium\user\Module', 
    'userNameFormatter' => 'getUserName'

That is I am using the dektrium user class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions