use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
+use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity()
* @ORM\Table(name="Person", indexes={@ORM\Index(name="authentification_idx", columns={"email", "password"}),
* @ORM\Index(name="search_idx", columns={"firstname", "lastname", "email"})});
+ * @Serializer\ExclusionPolicy("all")
*/
class Person
{
* @ORM\Id
* @ORM\Column(type="bigint")
* @ORM\GeneratedValue(strategy="AUTO")
+ * @Serializer\Expose
*/
protected $id;
/**
* @ORM\Column(type="string")
+ * @Serializer\Expose
*/
protected $firstname;
/**
* @ORM\Column(type="string")
+ * @Serializer\Expose
*/
protected $lastname;
/**
* @ORM\Column(type="string", unique=true)
+ * @Serializer\Expose
*/
protected $email;
/**
* @ORM\Column(type="boolean", options={"default":false})
+ * @Serializer\Expose
*/
protected $online;