{"action":"created","issue":{"url":"https://api.github.com/repos/Gizra/message/issues/17","labels_url":"https://api.github.com/repos/Gizra/message/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Gizra/message/issues/17/comments","events_url":"https://api.github.com/repos/Gizra/message/issues/17/events","html_url":"https://github.com/Gizra/message/issues/17","id":58653148,"number":17,"title":"Losing message_text after saving message_type entity","user":{"login":"wundo","id":113942,"avatar_url":"https://avatars.githubusercontent.com/u/113942?v=3","gravatar_id":"","url":"https://api.github.com/users/wundo","html_url":"https://github.com/wundo","followers_url":"https://api.github.com/users/wundo/followers","following_url":"https://api.github.com/users/wundo/following{/other_user}","gists_url":"https://api.github.com/users/wundo/gists{/gist_id}","starred_url":"https://api.github.com/users/wundo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wundo/subscriptions","organizations_url":"https://api.github.com/users/wundo/orgs","repos_url":"https://api.github.com/users/wundo/repos","events_url":"https://api.github.com/users/wundo/events{/privacy}","received_events_url":"https://api.github.com/users/wundo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T21:40:36Z","updated_at":"2015-05-26T04:45:46Z","closed_at":null,"body":"```php\r\n$t = message_type_create('test', array(\r\n    'description' => 'Type description',\r\n    'argument_keys' => array(\r\n        '!mid',\r\n        '!rid',\r\n        '!category',\r\n    ),\r\n    'message_text' => array(\r\n      LANGUAGE_NONE => array(\r\n        array('value' => 'Bla bla bla'),\r\n      ),\r\n    ),\r\n    'language' => 'en'\r\n));\r\n\r\n$tw = entity_metadata_wrapper('message_type', $t);\r\n$tw->save();\r\n\r\n// In a different request\r\n$t_check = message_type_load('test');\r\nif (empty($t_check->message_text)) {\r\n  dsm('what is going on?');\r\n  dsm($t_check);\r\n}\r\n```\r\n\r\nwill display the message \"what is going on?\" and the dsm will show the message_text is now empty :("},"comment":{"url":"https://api.github.com/repos/Gizra/message/issues/comments/105391082","html_url":"https://github.com/Gizra/message/issues/17#issuecomment-105391082","issue_url":"https://api.github.com/repos/Gizra/message/issues/17","id":105391082,"user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T04:45:46Z","updated_at":"2015-05-26T04:45:46Z","body":"Are you sure about it? could not reproduce this one with the code you provided."}}