public function getUsergroups() { return $this->hasMany(Usersgroups::className(), ['id_user' => 'id']); }