From ae4b64b198a143240aa5dd1e202e5016abfdae71 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 8 Dec 2016 13:18:19 +0100 Subject: Wrap references in a Reerence type. This allows us to make sure that references are not taken out of context (the resource). Because we need to use the type-specific accessors more we also ran into a problem that we cannot "downcast" a reference with the change recording still working, for that we have the cast() operator now. --- common/storage/entitystore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/storage') diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 7414f49..999bb2c 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -205,9 +205,10 @@ bool EntityStore::modify(const QByteArray &type, const ApplicationDomain::Applic auto metadataBuffer = metadataBuilder.Finish(); FinishMetadataBuffer(metadataFbb, metadataBuffer); } + SinkTrace() << "Modified entity: " << newEntity; + SinkTrace() << "Changed properties: " << changeset + newEntity.changedProperties(); newEntity.setChangedProperties(newEntity.availableProperties().toSet()); - SinkTrace() << "Modified entity " << newEntity; flatbuffers::FlatBufferBuilder fbb; d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize()); -- cgit v1.2.3