creof / doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions.
MIT License
272 stars 176 forks source link

deserialize with JMS Serializer #192

Open sela opened 6 years ago

sela commented 6 years ago

I'm using JMS Serializer and try to deserialize JSON Point coordinates. I wasn't sure for the format so serialized an object and got the following format (coordinate is the column name):

{
    "coordinate": {
        "x": 12.0,
        "y": 12.0
    }
}

now I try the same from JSON and the deserialize fails with the message: You must define a type for App\Entity\Something::$coordinate.