Remove exposition policy.
[Project_proches_de_moi-server.git] / src / Entity / Person.php
index 7897cfb4454c1b40dd18840f57d1bf942eeeb8e6..934b2be550db9866fda3b712ed807ae994ae6da4 100644 (file)
@@ -10,10 +10,6 @@ use JMS\Serializer\Annotation\Expose;
  * @ORM\Entity()
  * @ORM\Table(name="Person", indexes={@ORM\Index(name="authentification_idx", columns={"email", "password"}),
  *                                    @ORM\Index(name="search_idx", columns={"firstname", "lastname", "email"})});
- * The following annotations tells the serializer to skip all properties which
- * have not marked with @Expose.
- *
- * @ExclusionPolicy("all")
  */
 class Person
 {
@@ -21,37 +17,31 @@ class Person
      * @ORM\Id
      * @ORM\Column(type="bigint")
      * @ORM\GeneratedValue(strategy="AUTO")
-     * @Expose
      */
     protected $id;
 
     /**
      * @ORM\Column(type="string")
-     * @Expose
      */
     protected $firstname;
 
     /**
      * @ORM\Column(type="string")
-     * @Expose
      */
     protected $lastname;
 
     /**
      * @ORM\Column(type="string", unique=true)
-     * @Expose
      */
     protected $email;
 
     /**
      * @ORM\Column(type="string")
-     * @Expose
      */
     protected $password;
 
     /**
      * @ORM\Column(type="boolean", options={"default":false})
-     * @Expose
      */
     protected $online;