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
/
Localisation.php
diff --git
a/src/Entity/Localisation.php
b/src/Entity/Localisation.php
index 69431b97640b426183700232cd9f7bbc4a5f677d..b85a705bca5acfb4d1a2a3c202df708ec2feca62 100644
(file)
--- a/
src/Entity/Localisation.php
+++ b/
src/Entity/Localisation.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="Localisation")
/**
* @ORM\Entity()
* @ORM\Table(name="Localisation")
+ * @Serializer\ExclusionPolicy("all")
*/
class Localisation
{
*/
class Localisation
{
@@
-23,16
+25,19
@@
class Localisation
/**
* @ORM\Column(type="datetime")
/**
* @ORM\Column(type="datetime")
+ * @Serializer\Expose
*/
protected $timestamp;
/**
* @ORM\Column(type="float")
*/
protected $timestamp;
/**
* @ORM\Column(type="float")
+ * @Serializer\Expose
*/
protected $latitude;
/**
* @ORM\Column(type="float")
*/
protected $latitude;
/**
* @ORM\Column(type="float")
+ * @Serializer\Expose
*/
protected $longitude;
*/
protected $longitude;