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
Update symfony dependencies.
[Project_proches_de_moi-server.git]
/
src
/
Entity
/
Friendship.php
diff --git
a/src/Entity/Friendship.php
b/src/Entity/Friendship.php
index a069bceca52184cd28ee1a3b6418f47fe2721db9..5065733cea9c2022538038e30675d36d6dd822c5 100644
(file)
--- a/
src/Entity/Friendship.php
+++ b/
src/Entity/Friendship.php
@@
-2,27
+2,31
@@
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
{
/**
* @ORM\Id
*/
class Friendship
{
/**
* @ORM\Id
- * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends"
, cascade={"all"}
)
+ * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends")
*/
protected $person;
/**
* @ORM\Id
*/
protected $person;
/**
* @ORM\Id
- * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me", cascade={"all"})
+ * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me")
+ * @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;