{"action":"closed","issue":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/158","labels_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/158/comments","events_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/158/events","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/158","id":96810543,"number":158,"title":"Issue with Sitecore events being raised when creating a fake item","user":{"login":"seankearney","id":864524,"avatar_url":"https://avatars.githubusercontent.com/u/864524?v=3","gravatar_id":"","url":"https://api.github.com/users/seankearney","html_url":"https://github.com/seankearney","followers_url":"https://api.github.com/users/seankearney/followers","following_url":"https://api.github.com/users/seankearney/following{/other_user}","gists_url":"https://api.github.com/users/seankearney/gists{/gist_id}","starred_url":"https://api.github.com/users/seankearney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seankearney/subscriptions","organizations_url":"https://api.github.com/users/seankearney/orgs","repos_url":"https://api.github.com/users/seankearney/repos","events_url":"https://api.github.com/users/seankearney/events{/privacy}","received_events_url":"https://api.github.com/users/seankearney/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T13:12:19Z","updated_at":"2015-07-28T08:49:32Z","closed_at":"2015-07-28T08:49:32Z","body":"This was created as a result of the bug found [here](https://github.com/HedgehogDevelopment/sitecore-field-fallback/issues/18) in the Field Fallback module.\r\n\r\nGlass code goes and creates an in-memory Sitecore item via [this](https://github.com/mikeedwards83/Glass.Mapper/blob/master/Source%2FGlass.Mapper.Sc%2FGlassHtml.cs#L242) and [this](https://github.com/mikeedwards83/Glass.Mapper/blob/master/Source%2FGlass.Mapper.Sc%2FUtilities.cs#L86)\r\n\r\nBasically – Glass goes and creates a fake, in memory, Sitecore item. This triggers events to be fired in Sitecore. Specifically it triggers the `AddingVersion` and `SavingItem` events. It should also trigger the `AddedVersion` and `SavedItem` events; it does not fire the last two. \r\n\r\nI’ve registered a bug with Sitecore #442839. Here is a [simple script to duplicate Sitecore bug](https://gist.github.com/seankearney/1b6df5acf16b7f4cabe0)\r\n\r\nSitecore's response thus far is:\r\n\r\n> The `AddedVersion` and `SavedItem` events are database specific. Because of the creating the item in memory without parent item, it does not appears in the database. That’s why you cannot see these events. If you want to see them, you have to create item with the parent\r\n\r\nBeing we aren't *really* creating an item I'm not sure we want events to be raised at all."}}