From cfee991542dc57fa0bf0e991286dbdb4d0306b00 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sun, 4 Sep 2016 13:51:10 +0100 Subject: [PATCH] Fix setGlasses in POST /games --- src/Api/ScoreControllerProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/ScoreControllerProvider.php b/src/Api/ScoreControllerProvider.php index e7d58ef..3666dbd 100644 --- a/src/Api/ScoreControllerProvider.php +++ b/src/Api/ScoreControllerProvider.php @@ -93,7 +93,7 @@ class ScoreControllerProvider implements ControllerProviderInterface $hit->setScore($data_hit['score']); // attributes - $hit->setGlasses($data_hit['glasses']); + $hit->getAttributes()->setGlasses($data_hit['glasses']); foreach(Models\Hit::$ATTRIBUTES as $attribute) { $hit->getAttributes()->setAttribute($attribute, $data_hit[$attribute]); }