/** * @return \yii\db\ActiveQuery */ public function getMip() { return $this->hasOne(Mip::className(), ['id' => 'mip_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMips() { return $this->hasMany(Mip::className(), ['user_id' => 'id']); }