{"action":"closed","issue":{"url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/4","labels_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/4/comments","events_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/4/events","html_url":"https://github.com/BenjaminMedia/bonnier-php-sdk/issues/4","id":99239348,"number":4,"title":"[FEATURE][TRAPP] Parse locale from response","user":{"login":"skipperbent","id":634762,"avatar_url":"https://avatars.githubusercontent.com/u/634762?v=3","gravatar_id":"","url":"https://api.github.com/users/skipperbent","html_url":"https://github.com/skipperbent","followers_url":"https://api.github.com/users/skipperbent/followers","following_url":"https://api.github.com/users/skipperbent/following{/other_user}","gists_url":"https://api.github.com/users/skipperbent/gists{/gist_id}","starred_url":"https://api.github.com/users/skipperbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skipperbent/subscriptions","organizations_url":"https://api.github.com/users/skipperbent/orgs","repos_url":"https://api.github.com/users/skipperbent/repos","events_url":"https://api.github.com/users/skipperbent/events{/privacy}","received_events_url":"https://api.github.com/users/skipperbent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T16:03:19Z","updated_at":"2015-08-19T07:58:03Z","closed_at":"2015-08-19T07:58:03Z","body":"When inserting/updating - the languages field from the api should be parsed to a \"locale\" - so it's the same as when you insert...\r\n\r\nRight now this doesnt work\r\n$service->locale = ['en_gb'];\r\n$service->save();\r\n\r\n$service->locale = NULL\r\n\r\nthis is because the api returns the request as\r\n\r\n$response->languages->locale..."}}