Exclude user in JSON
This commit is contained in:
parent
55c418aa2f
commit
4411576d16
2 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ class Game
|
|||
/**
|
||||
* @ORM\ManyToOne(targetEntity="User", inversedBy="games")
|
||||
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
|
||||
* @JMS\Exclude
|
||||
*/
|
||||
private $user;
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ class User implements UserInterface
|
|||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="Game", mappedBy="user")
|
||||
* @JMS\Exclude
|
||||
*/
|
||||
private $games;
|
||||
|
||||
|
|
Loading…
Reference in a new issue