{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/4108","repository_url":"https://api.github.com/repos/Sylius/Sylius","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/4108/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/4108/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/4108/events","html_url":"https://github.com/Sylius/Sylius/issues/4108","id":132739032,"number":4108,"title":"[attribute] - not possible to add mutliple attributes of same type","user":{"login":"nakashu","id":1550659,"avatar_url":"https://avatars.githubusercontent.com/u/1550659?v=3","gravatar_id":"","url":"https://api.github.com/users/nakashu","html_url":"https://github.com/nakashu","followers_url":"https://api.github.com/users/nakashu/followers","following_url":"https://api.github.com/users/nakashu/following{/other_user}","gists_url":"https://api.github.com/users/nakashu/gists{/gist_id}","starred_url":"https://api.github.com/users/nakashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakashu/subscriptions","organizations_url":"https://api.github.com/users/nakashu/orgs","repos_url":"https://api.github.com/users/nakashu/repos","events_url":"https://api.github.com/users/nakashu/events{/privacy}","received_events_url":"https://api.github.com/users/nakashu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sylius/Sylius/labels/Feature%20Request","name":"Feature Request","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-10T15:56:20Z","updated_at":"2016-02-12T09:05:33Z","closed_at":null,"body":"In the new attribute system there is a serious limitation.\r\n\r\nIf you want to add multiple attributes of same type to a product you cant.\r\nAfter adding the first type, it won't appear in the selection anymore.\r\n\r\nUsecases:\r\nBook - have multiple authors\r\nShirt - is made of multiple fabrics\r\nPizza - have multiple ingredients\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/183243359","html_url":"https://github.com/Sylius/Sylius/issues/4108#issuecomment-183243359","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/4108","id":183243359,"user":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T09:05:33Z","updated_at":"2016-02-12T09:05:33Z","body":"@nakashu while creating new attributes system, the main concept was that attributes are singular, as each of them describes specific characteristic of subject. Of course, there are some use cases where it is unfortunate (e.g. those, which you've described). Surely, this is sth to concern, how it should be handled:\r\n- by new attribute type (``Collection``?) - however there we're making harder to validate array elements\r\n- by allowing to add multiple attributes\r\n- by adding a \"multiple\" flag on attribute to configure multiple attribute possibility\r\n\r\n@michalmarcinkowski @nakashu @pjedrzejewski wdyt about it?"}}