{"action":"created","issue":{"url":"https://api.github.com/repos/nelmio/alice/issues/313","repository_url":"https://api.github.com/repos/nelmio/alice","labels_url":"https://api.github.com/repos/nelmio/alice/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/nelmio/alice/issues/313/comments","events_url":"https://api.github.com/repos/nelmio/alice/issues/313/events","html_url":"https://github.com/nelmio/alice/issues/313","id":133206666,"number":313,"title":"Multiple method call (adders)","user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nelmio/alice/labels/Feature","name":"Feature","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nelmio/alice/milestones/2","html_url":"https://github.com/nelmio/alice/milestones/3.x","labels_url":"https://api.github.com/repos/nelmio/alice/milestones/2/labels","id":1748252,"number":2,"title":"3.x","description":"","creator":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":16,"state":"open","created_at":"2016-05-04T18:01:58Z","updated_at":"2016-06-06T09:58:11Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2016-02-12T10:44:18Z","updated_at":"2016-06-06T11:52:17Z","closed_at":null,"body":"Hi !\r\n\r\nIs there a way to properly call multiple times a method, like an adder method for instance ?\r\n\r\nFor instance, the snippet below won't work, because you can't use the same key multiple times in yaml:\r\n```yaml\r\nCatalog\\Product\\Product:\r\n    foo:\r\n       # [...]\r\n        addImage: ['foo-image', 0]\r\n        addImage: ['bar-image', 1]\r\n```\r\n\r\nThis adder method accepts multiple arguments, which seems to be a problem for the `ArrayAdd` class, so the snippet below won't work either:\r\n\r\n```yaml\r\nCatalog\\Product\\Product:\r\n    foo:\r\n       # [...]\r\n        images: \r\n            - ['foo-image', 0]\r\n            - ['bar-image', 1]\r\n```\r\n> Missing argument 2 for Catalog\\Product\\Product::addImage(), called in [...]/vendor/nelmio/alice/src/Nelmio/Alice/Instances/Populator/Methods/ArrayAdd.php on line 48 and defined \r\n\r\nIs there a simple solution to this ?"},"comment":{"url":"https://api.github.com/repos/nelmio/alice/issues/comments/223937535","html_url":"https://github.com/nelmio/alice/issues/313#issuecomment-223937535","issue_url":"https://api.github.com/repos/nelmio/alice/issues/313","id":223937535,"user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T11:52:17Z","updated_at":"2016-06-06T11:52:17Z","body":"I haven't though about the `with*` method of immutable objects, but I'd love to have it, too. 👍 "}}
{"actor":{"display_login":"ogizanagi"}}