Private
Public Access
1
0

add created, updated field to db && improve graph design

This commit is contained in:
2017-01-03 13:10:43 +01:00
parent 039c29674a
commit e387e21b34
11 changed files with 200 additions and 17 deletions

View File

@@ -167,12 +167,14 @@ class MineseekerTopic implements TopicInterface
$step->setCol($event['coords'][1]);
$step->setWBomb($event['bomb']);
$step->setPlayedGame($playedGame);
$step->setCreated(new \DateTime());
$this->em->persist($step);
$playedGame->setBluePoints($event['bluePoints']);
$playedGame->setRedPoints($event['redPoints']);
$playedGame->setBlueExplodedBomb($event['blueExplodedBomb'] ? true : null);
$playedGame->setRedExplodedBomb($event['redExplodedBomb'] ? true : null);
$playedGame->setUpdated(new \DateTime());
$this->em->persist($playedGame);
$this->em->flush();