JMS formatting on some models
This commit is contained in:
parent
6693c4d60b
commit
48f43136d9
4 changed files with 5 additions and 2 deletions
|
@ -27,7 +27,7 @@ class GameRepository extends EntityRepository
|
|||
"SELECT COUNT(g.id) FROM ".Game::class." g WHERE g.level = :level"
|
||||
)
|
||||
->setParameters([
|
||||
'level' => $level(),
|
||||
'level' => $level,
|
||||
]);
|
||||
return $query->getSingleScalarResult();
|
||||
}
|
||||
|
|
|
@ -633,7 +633,7 @@ class Hit
|
|||
|
||||
/**
|
||||
* Gets the value of game.
|
||||
*
|
||||
* @JMS\Exclude
|
||||
* @return mixed
|
||||
*/
|
||||
public function getGame()
|
||||
|
|
|
@ -33,10 +33,12 @@ class Level
|
|||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="Target", mappedBy="level", cascade={"persist"})
|
||||
* @OrderBy({"position" = "ASC"})
|
||||
*/
|
||||
private $targets;
|
||||
|
||||
/**
|
||||
* @JMS\Exclude
|
||||
* @ORM\OneToMany(targetEntity="Game", mappedBy="level", fetch="EXTRA_LAZY")
|
||||
*/
|
||||
private $games;
|
||||
|
|
|
@ -58,6 +58,7 @@ class Target
|
|||
private $score;
|
||||
|
||||
/**
|
||||
* @JMS\Exclude
|
||||
* @ORM\OneToMany(targetEntity="Hit", mappedBy="target", fetch="EXTRA_LAZY")
|
||||
*/
|
||||
private $hits;
|
||||
|
|
Loading…
Reference in a new issue