Skip to content

当我发送一个消息时,出现了一个错误 invalid user information #1

@jpyeah

Description

@jpyeah

这是我的 components configure
'messageManager'=>[
'class'=>'johnnylei\message_system\MessageManager',
// userInformation 是一个用户表的activeRecord,主要作用当你发送消息的时候,将用户表里面的消息总数+1,当你阅读完消息的时候,将用户表里面的消息数-1,
// 通过实现UserInformationInterface,里面的两个方法
'userInformation'=>[
'class'=>'common\models\User',
]
],

是还要在用户表添加消息数的字段么 ?字段名是什么?麻烦帮助一下,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions