repositories
/
Project_proches_de_moi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only expose relevant attributes.
[Project_proches_de_moi-server.git]
/
src
/
Entity
/
Friendship.php
diff --git
a/src/Entity/Friendship.php
b/src/Entity/Friendship.php
index a069bceca52184cd28ee1a3b6418f47fe2721db9..444523f5b3d50513c2faad00aecf1453f51787d4 100644
(file)
--- a/
src/Entity/Friendship.php
+++ b/
src/Entity/Friendship.php
@@
-2,10
+2,12
@@
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
+use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity()
* @ORM\Table(name="Friendship");
/**
* @ORM\Entity()
* @ORM\Table(name="Friendship");
+ * @Serializer\ExclusionPolicy("all")
*/
class Friendship
{
*/
class Friendship
{
@@
-18,11
+20,13
@@
class Friendship
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me", cascade={"all"})
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me", cascade={"all"})
+ * @Serializer\Expose
*/
protected $friend;
/**
* @ORM\Column(type="boolean", options={"default":false})
*/
protected $friend;
/**
* @ORM\Column(type="boolean", options={"default":false})
+ * @Serializer\Expose
*/
protected $is_valid;
*/
protected $is_valid;