X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=blobdiff_plain;f=src%2FEntity%2FFriendship.php;fp=src%2FEntity%2FFriendship.php;h=444523f5b3d50513c2faad00aecf1453f51787d4;hp=a069bceca52184cd28ee1a3b6418f47fe2721db9;hb=84fd6c7fa765874e478ad7f92e356e88b3ff962c;hpb=1faa29dccd972e343ecbdc462238702c881493fd diff --git a/src/Entity/Friendship.php b/src/Entity/Friendship.php index a069bce..444523f 100644 --- a/src/Entity/Friendship.php +++ b/src/Entity/Friendship.php @@ -2,10 +2,12 @@ namespace App\Entity; use Doctrine\ORM\Mapping as ORM; +use JMS\Serializer\Annotation as Serializer; /** * @ORM\Entity() * @ORM\Table(name="Friendship"); + * @Serializer\ExclusionPolicy("all") */ class Friendship { @@ -18,11 +20,13 @@ class Friendship /** * @ORM\Id * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me", cascade={"all"}) + * @Serializer\Expose */ protected $friend; /** * @ORM\Column(type="boolean", options={"default":false}) + * @Serializer\Expose */ protected $is_valid;