{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5883","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-framework","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5883/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5883/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5883/events","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/5883","id":170602435,"number":5883,"title":"Enum field inheritance issue","user":{"login":"kinglozzer","id":1655548,"avatar_url":"https://avatars.githubusercontent.com/u/1655548?v=3","gravatar_id":"","url":"https://api.github.com/users/kinglozzer","html_url":"https://github.com/kinglozzer","followers_url":"https://api.github.com/users/kinglozzer/followers","following_url":"https://api.github.com/users/kinglozzer/following{/other_user}","gists_url":"https://api.github.com/users/kinglozzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kinglozzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinglozzer/subscriptions","organizations_url":"https://api.github.com/users/kinglozzer/orgs","repos_url":"https://api.github.com/users/kinglozzer/repos","events_url":"https://api.github.com/users/kinglozzer/events{/privacy}","received_events_url":"https://api.github.com/users/kinglozzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-11T09:18:53Z","updated_at":"2016-08-11T09:39:23Z","closed_at":null,"body":"Short of time right now, so I’ll try to investigate this in more detail later. tldr; this doesn’t work:\r\n\r\n```php\r\nclass Page extends SiteTree\r\n{\r\n    private static $db = [\r\n        'EnumTest' => 'Enum(array(\"Foo\"))'\r\n    ];\r\n}\r\n\r\nclass ChildPage extends Page\r\n{\r\n    private static $db = [\r\n        'EnumTest' => 'Enum(array(\"Bar\"))'\r\n    ];\r\n}\r\n```\r\n\r\nUnable to save “Bar” against a ChildPage record."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/239115442","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/5883#issuecomment-239115442","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5883","id":239115442,"user":{"login":"dhensby","id":563596,"avatar_url":"https://avatars.githubusercontent.com/u/563596?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensby","html_url":"https://github.com/dhensby","followers_url":"https://api.github.com/users/dhensby/followers","following_url":"https://api.github.com/users/dhensby/following{/other_user}","gists_url":"https://api.github.com/users/dhensby/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensby/subscriptions","organizations_url":"https://api.github.com/users/dhensby/orgs","repos_url":"https://api.github.com/users/dhensby/repos","events_url":"https://api.github.com/users/dhensby/events{/privacy}","received_events_url":"https://api.github.com/users/dhensby/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T09:39:22Z","updated_at":"2016-08-11T09:39:22Z","body":"TBH, I think that's expected. If you had two columns named the same that weren't Enums, how would you expect it to work? I wouldn't expect them to merge, or really work at all..."}}
{"actor":{"display_login":"dhensby"}}