Fix setGlasses in POST /games

This commit is contained in:
Ruben 2016-09-04 13:51:10 +01:00
parent 0958cb9fe2
commit cfee991542

View file

@ -93,7 +93,7 @@ class ScoreControllerProvider implements ControllerProviderInterface
$hit->setScore($data_hit['score']); $hit->setScore($data_hit['score']);
// attributes // attributes
$hit->setGlasses($data_hit['glasses']); $hit->getAttributes()->setGlasses($data_hit['glasses']);
foreach(Models\Hit::$ATTRIBUTES as $attribute) { foreach(Models\Hit::$ATTRIBUTES as $attribute) {
$hit->getAttributes()->setAttribute($attribute, $data_hit[$attribute]); $hit->getAttributes()->setAttribute($attribute, $data_hit[$attribute]);
} }