Entry: store associations

Store a copy of the entry object's associations, in case we need to
recreate them, for example when marking an error as unresolved.

Change-Id: I50001365211325505ed3a72b19a46b1438cc9731
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/elog_entry.hpp b/elog_entry.hpp
index 1c631a9..8208e7f 100644
--- a/elog_entry.hpp
+++ b/elog_entry.hpp
@@ -60,12 +60,17 @@
             message(std::move(msgErr));
             additionalData(std::move(additionalDataErr));
             associations(std::move(objects));
+            // Store a copy of associations in case we need to recreate
+            assocs = associations();
             resolved(false);
 
             // Emit deferred signal.
             this->emit_object_added();
         };
 
+    private:
+        /** @brief This entry's associations */
+        AssociationList assocs = {};
 };
 
 } // namespace logging