{"action":"opened","issue":{"url":"https://api.github.com/repos/SafirSDK/safir-sdk-core/issues/280","labels_url":"https://api.github.com/repos/SafirSDK/safir-sdk-core/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/SafirSDK/safir-sdk-core/issues/280/comments","events_url":"https://api.github.com/repos/SafirSDK/safir-sdk-core/issues/280/events","html_url":"https://github.com/SafirSDK/safir-sdk-core/issues/280","id":113607665,"number":280,"title":"Change flags doesn't work as expected ","user":{"login":"stfeky","id":15015879,"avatar_url":"https://avatars.githubusercontent.com/u/15015879?v=3","gravatar_id":"","url":"https://api.github.com/users/stfeky","html_url":"https://github.com/stfeky","followers_url":"https://api.github.com/users/stfeky/followers","following_url":"https://api.github.com/users/stfeky/following{/other_user}","gists_url":"https://api.github.com/users/stfeky/gists{/gist_id}","starred_url":"https://api.github.com/users/stfeky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stfeky/subscriptions","organizations_url":"https://api.github.com/users/stfeky/orgs","repos_url":"https://api.github.com/users/stfeky/repos","events_url":"https://api.github.com/users/stfeky/events{/privacy}","received_events_url":"https://api.github.com/users/stfeky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T15:12:32Z","updated_at":"2015-10-27T15:12:32Z","closed_at":null,"body":"Change flags doesn't work as expected.\r\nWe do not get any IsChange flags set to true in OnUpdateEntity callback while using Safir::Dob::ConnectionAspectInjector to subscribe for changes on timestamps on entitys.\r\n\r\ncode snipet:\r\n\r\nvoid App::OnStartup()\r\n{\r\n\r\n    Safir::Dob::ConnectionAspectInjector inject(GetDobConnection());\r\n    const Safir::Dob::Typesystem::TypeIdVector types = \r\n        Safir::Dob::Typesystem::Operations::GetClassTree(Safir::Dob::Entity::ClassTypeId);\r\n\r\n    inject.SubscribeEntity( MyNamespace::TestDistributedEntity::ClassTypeId, true, true, false, true, true, true, false, true, this );\r\n    \r\n}\r\n\r\nvoid App::OnUpdatedEntity(const Safir::Dob::EntityProxy entityProxy)\r\n{\r\n    Safir::Dob::EntityPtr object =  entityProxy.GetEntityWithChangeInfo();\r\n\r\n    std::wcout << L\"OnUpdatedEntity: \" << entityProxy.GetEntityId().ToString() << std::endl;\r\n    int nNoOfMembers = Safir::Dob::Typesystem::Members::GetNumberOfMembers( entityProxy.GetTypeId() );\r\n    for (int i = 0; i < nNoOfMembers; ++i)\r\n    {\r\n        const Safir::Dob::Typesystem::ContainerBase & container = object->GetMember(i,0);\r\n        if (container.IsChanged())\r\n        {\r\n            if (IsInjectable(entityProxy.GetTypeId()))\r\n            {\r\n                std::wcout << L\" Member \" << i << L\" timestamp \" << entityProxy.GetTimestamp(i) << std::endl;\r\n            }\r\n            else\r\n            {\r\n                std::wcout << L\" Member \" << i << L\" is changed but not injectable\" << std::endl;\r\n            }\r\n        }\r\n        else\r\n        {\r\n            std::wcout << L\" Member \" << i << L\" not changed \" << std::endl;\r\n        }\r\n    }\r\n}"}}