Columns to Hit and some test output for /me/games

This commit is contained in:
Ruben 2016-09-03 17:14:04 +01:00
parent 2c20a122d2
commit 8da94253db
2 changed files with 24 additions and 9 deletions

View file

@ -44,8 +44,18 @@ class ScoreControllerProvider implements ControllerProviderInterface
});
$controllers->post('/me/games', function (Request $request, Application $app) {
$vars = json_decode($request->getContent(), true);
var_dump($vars);
var_dump($request->getContent());
$a = date("Y-m-d H:i:s")."\n";
$a .= print_r($request->attributes->all(), true);
$a .= print_r($request->query->all(), true);
$a .= print_r($request->request->all(), true);
$a .= "\n\n";
$a .= $request->getContent();
file_put_contents(__DIR__.'/../../cache/me_games', $a);
// $vars = json_decode($request->getContent(), true);
// var_dump($vars);
return $app['serializer']->serialize($levels, 'json');
});

View file

@ -48,19 +48,24 @@ class Hit
*/
private $emotion;
/**
* @ORM\OneToMany(targetEntity="Hit", mappedBy="target")
*/
private $hits;
/**
* @var string
* @ORM\Column(name="gender",columnDefinition="VARCHAR(1)")
*/
private $gender;
/**
* @var string
* @ORM\Column(name="gender",columnDefinition="VARCHAR(20)")
*/
private $ethnicity;
/**
* @var string
* @ORM\Column(name="gender",columnDefinition="VARCHAR(20)")
*/
private $age;
/**
* @var boolean
* @ORM\Column(type="boolean")