{"action":"created","issue":{"url":"https://api.github.com/repos/allegro/php-protobuf/issues/80","repository_url":"https://api.github.com/repos/allegro/php-protobuf","labels_url":"https://api.github.com/repos/allegro/php-protobuf/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/allegro/php-protobuf/issues/80/comments","events_url":"https://api.github.com/repos/allegro/php-protobuf/issues/80/events","html_url":"https://github.com/allegro/php-protobuf/issues/80","id":169368802,"number":80,"title":"Problem with nested messages","user":{"login":"swapniel99","id":3740219,"avatar_url":"https://avatars.githubusercontent.com/u/3740219?v=3","gravatar_id":"","url":"https://api.github.com/users/swapniel99","html_url":"https://github.com/swapniel99","followers_url":"https://api.github.com/users/swapniel99/followers","following_url":"https://api.github.com/users/swapniel99/following{/other_user}","gists_url":"https://api.github.com/users/swapniel99/gists{/gist_id}","starred_url":"https://api.github.com/users/swapniel99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapniel99/subscriptions","organizations_url":"https://api.github.com/users/swapniel99/orgs","repos_url":"https://api.github.com/users/swapniel99/repos","events_url":"https://api.github.com/users/swapniel99/events{/privacy}","received_events_url":"https://api.github.com/users/swapniel99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-04T13:02:27Z","updated_at":"2016-08-05T12:04:49Z","closed_at":null,"body":"Hi,\r\n\r\nHow to use nested messages?\r\nFor example i have the following proto:\r\n\r\n```\r\nmessage Foo\r\n{\r\n    required int32 bar = 1;\r\n    optional string baz = 2;\r\n    repeated float spam = 3;\r\n\r\n    message Sub\r\n    {\r\n        optional int64 id = 1;\r\n        optional int32 age_sec = 2;\r\n    }\r\n}\r\n\r\n```\r\nUsing protoc-gen-php.php makes two php Files: Foo.php and Foo_Sub.php\r\nAnd Foo.php has no mention of sub anywhere. How to deal with this?\r\n"},"comment":{"url":"https://api.github.com/repos/allegro/php-protobuf/issues/comments/237833686","html_url":"https://github.com/allegro/php-protobuf/issues/80#issuecomment-237833686","issue_url":"https://api.github.com/repos/allegro/php-protobuf/issues/80","id":237833686,"user":{"login":"hjagodzinski","id":3833077,"avatar_url":"https://avatars.githubusercontent.com/u/3833077?v=3","gravatar_id":"","url":"https://api.github.com/users/hjagodzinski","html_url":"https://github.com/hjagodzinski","followers_url":"https://api.github.com/users/hjagodzinski/followers","following_url":"https://api.github.com/users/hjagodzinski/following{/other_user}","gists_url":"https://api.github.com/users/hjagodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/hjagodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjagodzinski/subscriptions","organizations_url":"https://api.github.com/users/hjagodzinski/orgs","repos_url":"https://api.github.com/users/hjagodzinski/repos","events_url":"https://api.github.com/users/hjagodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/hjagodzinski/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T12:04:49Z","updated_at":"2016-08-05T12:04:49Z","body":"No, I don't need to define a field of nested type, it's up to you but basically you define nested messages to use them in a parent message."}}
{"actor":{"display_login":"hjagodzinski"}}