hasMany('User','user_id','id'); } //发件箱关联收件箱 public function messageto() { return $this->hasMany('MessageTo','message_id','id'); } }