/** * @return \yii\db\ActiveQuery */ public function getMsg0() { return $this->hasOne(Msg::className(), ['id' => 'msg']); }
/** * @return \yii\db\ActiveQuery */ public function getMsgs() { return $this->hasMany(Msg::className(), ['userid' => 'id']); }