diff --git a/src/Models/Game.php b/src/Models/Game.php index d5ff1fe..311267f 100644 --- a/src/Models/Game.php +++ b/src/Models/Game.php @@ -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; diff --git a/src/Models/User.php b/src/Models/User.php index 3316da0..1ec7181 100644 --- a/src/Models/User.php +++ b/src/Models/User.php @@ -30,6 +30,7 @@ class User implements UserInterface /** * @ORM\OneToMany(targetEntity="Game", mappedBy="user") + * @JMS\Exclude */ private $games;