{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/3150","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/3150/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3150/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/3150/events","html_url":"https://github.com/Sylius/Sylius/pull/3150","id":101663510,"number":3150,"title":"[CoreBundle] Add custom constraint for \"enabled\" entity fields and prevent delete all channels","user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sylius/Sylius/labels/Bug%20Fix","name":"Bug Fix","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Sylius/Sylius/milestones/2","html_url":"https://github.com/Sylius/Sylius/milestones/v0.15.0","labels_url":"https://api.github.com/repos/Sylius/Sylius/milestones/2/labels","id":1104559,"number":2,"title":"v0.15.0","description":"Version v0.15.0 of Sylius platform.","creator":{"login":"pjedrzejewski","id":614970,"avatar_url":"https://avatars.githubusercontent.com/u/614970?v=3","gravatar_id":"","url":"https://api.github.com/users/pjedrzejewski","html_url":"https://github.com/pjedrzejewski","followers_url":"https://api.github.com/users/pjedrzejewski/followers","following_url":"https://api.github.com/users/pjedrzejewski/following{/other_user}","gists_url":"https://api.github.com/users/pjedrzejewski/gists{/gist_id}","starred_url":"https://api.github.com/users/pjedrzejewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjedrzejewski/subscriptions","organizations_url":"https://api.github.com/users/pjedrzejewski/orgs","repos_url":"https://api.github.com/users/pjedrzejewski/repos","events_url":"https://api.github.com/users/pjedrzejewski/events{/privacy}","received_events_url":"https://api.github.com/users/pjedrzejewski/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":22,"state":"open","created_at":"2015-05-11T11:09:49Z","updated_at":"2015-08-24T14:29:28Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-18T14:04:04Z","updated_at":"2015-08-24T19:12:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3150","html_url":"https://github.com/Sylius/Sylius/pull/3150","diff_url":"https://github.com/Sylius/Sylius/pull/3150.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3150.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed tickets | #3135\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nThis PR introduce a custom constraint to verify entities with enabled field, when at least one entity is required to be enabled.\r\n\r\nAlso this PR prevent the deletion of a channel, if the the channel is the unique enabled channel available."},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/134344506","html_url":"https://github.com/Sylius/Sylius/pull/3150#issuecomment-134344506","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3150","id":134344506,"user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T19:12:47Z","updated_at":"2015-08-24T19:12:47Z","body":"@pjedrzejewski "}}