/** * @return \yii\db\ActiveQuery */ public function getThread() { return $this->hasOne(MsgThread::className(), ['id' => 'thread_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMsgThreads0() { return $this->hasMany(MsgThread::className(), ['receiver' => 'id']); }