/** * @return \yii\db\ActiveQuery */ public function getMr() { return $this->hasOne(MessageRooms::className(), ['mr_id' => 'mr_id']); }