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