{"action":"created","issue":{"url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/135","repository_url":"https://api.github.com/repos/creof/doctrine2-spatial","labels_url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/135/comments","events_url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/135/events","html_url":"https://github.com/creof/doctrine2-spatial/issues/135","id":136217280,"number":135,"title":"multiPolygon is saved as polygon when saving to database","user":{"login":"collmomo","id":1113095,"avatar_url":"https://avatars.githubusercontent.com/u/1113095?v=3","gravatar_id":"","url":"https://api.github.com/users/collmomo","html_url":"https://github.com/collmomo","followers_url":"https://api.github.com/users/collmomo/followers","following_url":"https://api.github.com/users/collmomo/following{/other_user}","gists_url":"https://api.github.com/users/collmomo/gists{/gist_id}","starred_url":"https://api.github.com/users/collmomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collmomo/subscriptions","organizations_url":"https://api.github.com/users/collmomo/orgs","repos_url":"https://api.github.com/users/collmomo/repos","events_url":"https://api.github.com/users/collmomo/events{/privacy}","received_events_url":"https://api.github.com/users/collmomo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creof/doctrine2-spatial/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/creof/doctrine2-spatial/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/creof/doctrine2-spatial/milestones/4","html_url":"https://github.com/creof/doctrine2-spatial/milestones/1.2","labels_url":"https://api.github.com/repos/creof/doctrine2-spatial/milestones/4/labels","id":1604188,"number":4,"title":"1.2","description":"","creator":{"login":"sadortun","id":794449,"avatar_url":"https://avatars.githubusercontent.com/u/794449?v=3","gravatar_id":"","url":"https://api.github.com/users/sadortun","html_url":"https://github.com/sadortun","followers_url":"https://api.github.com/users/sadortun/followers","following_url":"https://api.github.com/users/sadortun/following{/other_user}","gists_url":"https://api.github.com/users/sadortun/gists{/gist_id}","starred_url":"https://api.github.com/users/sadortun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadortun/subscriptions","organizations_url":"https://api.github.com/users/sadortun/orgs","repos_url":"https://api.github.com/users/sadortun/repos","events_url":"https://api.github.com/users/sadortun/events{/privacy}","received_events_url":"https://api.github.com/users/sadortun/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-02-25T00:06:27Z","updated_at":"2016-02-25T00:07:30Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-24T23:05:54Z","updated_at":"2016-02-25T02:52:53Z","closed_at":null,"body":"\r\n     #CrEOF\\Spatial\\PHP\\Types\\AbstractMultiPolygon\r\n\r\n     /**\r\n     * @return string\r\n     */\r\n    public function getType()\r\n    {\r\n        return self::POLYGON;\r\n    }`\r\n\r\nI don't know if thats wanted but this specific portion of code makes believe your wkt parser that this is a polygon and as a consequence the wkt is saved as such `'POLYGON (.....)' `when it should be `'MULTIPOLYGON(....)'.` I tried changing it to `self::MULTIPOLYGON`, but then it tells me the parser doesn't exist which leads me to believe this was intended. \r\n"},"comment":{"url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/comments/188577476","html_url":"https://github.com/creof/doctrine2-spatial/issues/135#issuecomment-188577476","issue_url":"https://api.github.com/repos/creof/doctrine2-spatial/issues/135","id":188577476,"user":{"login":"djlambert","id":1187338,"avatar_url":"https://avatars.githubusercontent.com/u/1187338?v=3","gravatar_id":"","url":"https://api.github.com/users/djlambert","html_url":"https://github.com/djlambert","followers_url":"https://api.github.com/users/djlambert/followers","following_url":"https://api.github.com/users/djlambert/following{/other_user}","gists_url":"https://api.github.com/users/djlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/djlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djlambert/subscriptions","organizations_url":"https://api.github.com/users/djlambert/orgs","repos_url":"https://api.github.com/users/djlambert/repos","events_url":"https://api.github.com/users/djlambert/events{/privacy}","received_events_url":"https://api.github.com/users/djlambert/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T02:52:53Z","updated_at":"2016-02-25T02:52:53Z","body":"Adding support for the use of other geometry objects (including GeoPHP) is in the works. I'd like to avoid introducing unnecessary external dependencies into the library."}}