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]); }