Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Private-Messaging

$
0
0
I follow the instructions of Private-Messaging, but I see error as follows:
"Active record "Message" has an invalid configuration for relation "receiver". It must specify the relation type, the related active record class and the foreign key."

My config/main.php:
'message' => array(
                        'userModel' => 'User',
                        'getNameMethod' => 'getFullName',
                        'getSuggestMethod' => 'getSuggest',
                        //'viewPath' => '/message/fancy',
                        
                        'receiverRelation' => array(
                                        CActiveRecord::BELONGS_TO,
                                        'User',
                                        'on' => 'User.id = receiver_id'
                        ),

                        
                                                )

                        'senderRelation' => array(
                                        CActiveRecord::BELONGS_TO,
                                        'User',
                                        'on' => 'User.id = sender_id'
                        ),

                                
        ),


This is my post, it have error "Active record "Message" has an invalid configuration for relation "receiver" "
https://www.dropbox.com/s/oq1jpbfpftih6mo/message.rar

Can someone please help me ?!

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>