From 70bab8736663d12d05840f8e68d6177ab7b55ca4 Mon Sep 17 00:00:00 2001 From: Pelayori <31128562+Pelayori@users.noreply.github.com> Date: Tue, 5 Mar 2024 00:41:05 +0100 Subject: [PATCH] Test fix for sql generation --- src/main/java/com/uniovi/entities/Associations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/uniovi/entities/Associations.java b/src/main/java/com/uniovi/entities/Associations.java index 28c876cd..1d1db3cc 100644 --- a/src/main/java/com/uniovi/entities/Associations.java +++ b/src/main/java/com/uniovi/entities/Associations.java @@ -34,7 +34,7 @@ public static class PlayerApiKey { * @param apiKey The API key */ public static void addApiKey(Player player, ApiKey apiKey) { - apiKey.setUser(player); + apiKey.setPlayer(player); player.setApiKey(apiKey); } @@ -45,7 +45,7 @@ public static void addApiKey(Player player, ApiKey apiKey) { * @param apiKey The API key */ public static void removeApiKey(Player player, ApiKey apiKey) { - apiKey.setUser(null); + apiKey.setPlayer(null); player.setApiKey(null); } }