Test and fixes every REST ressources already implemented.
[Project_proches_de_moi-server.git] / src / Entity / Person.php
index d06f5756f9ce2a8ce1b2e981ae1b01e0e92d397c..62cb46b3a446ccb2cf0648191b7107faeada4fa7 100644 (file)
@@ -52,13 +52,13 @@ class Person
 
     /**
     * One person have many friends
-    * @ORM\OneToMany(targetEntity="App\Entity\Friendship", mappedBy="person", cascade={"all"})
+    * @ORM\OneToMany(targetEntity="App\Entity\Friendship", mappedBy="person")
     */
     protected $friends;
 
     /**
     * One person have many friends
-    * @ORM\OneToMany(targetEntity="App\Entity\Friendship", mappedBy="friend", cascade={"all"})
+    * @ORM\OneToMany(targetEntity="App\Entity\Friendship", mappedBy="friend")
     */
     protected $friends_with_me;