Columns to Hit and some test output for /me/games
This commit is contained in:
parent
2c20a122d2
commit
8da94253db
2 changed files with 24 additions and 9 deletions
|
@ -44,8 +44,18 @@ class ScoreControllerProvider implements ControllerProviderInterface
|
||||||
});
|
});
|
||||||
|
|
||||||
$controllers->post('/me/games', function (Request $request, Application $app) {
|
$controllers->post('/me/games', function (Request $request, Application $app) {
|
||||||
$vars = json_decode($request->getContent(), true);
|
var_dump($request->getContent());
|
||||||
var_dump($vars);
|
|
||||||
|
$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');
|
return $app['serializer']->serialize($levels, 'json');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -48,19 +48,24 @@ class Hit
|
||||||
*/
|
*/
|
||||||
private $emotion;
|
private $emotion;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ORM\OneToMany(targetEntity="Hit", mappedBy="target")
|
|
||||||
*/
|
|
||||||
private $hits;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @ORM\Column(name="gender",columnDefinition="VARCHAR(1)")
|
* @ORM\Column(name="gender",columnDefinition="VARCHAR(1)")
|
||||||
*/
|
*/
|
||||||
private $gender;
|
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
|
* @var boolean
|
||||||
* @ORM\Column(type="boolean")
|
* @ORM\Column(type="boolean")
|
||||||
|
|
Loading…
Reference in a new issue