diff --git a/object_schema.cpp b/object_schema.cpp index 83edd1f1..41e34685 100644 --- a/object_schema.cpp +++ b/object_schema.cpp @@ -17,13 +17,17 @@ //////////////////////////////////////////////////////////////////////////// #include "object_schema.hpp" + #include "object_store.hpp" +#include "property.hpp" #include #include using namespace realm; +ObjectSchema::~ObjectSchema() = default; + ObjectSchema::ObjectSchema(Group *group, const std::string &name) : name(name) { TableRef tableRef = ObjectStore::table_for_object_type(group, name); Table *table = tableRef.get(); diff --git a/object_schema.hpp b/object_schema.hpp index 56a14d17..51a4c584 100644 --- a/object_schema.hpp +++ b/object_schema.hpp @@ -22,14 +22,14 @@ #include #include -#include "property.hpp" - namespace realm { + class Property; class Group; class ObjectSchema { public: - ObjectSchema() {} + ObjectSchema() = default; + ~ObjectSchema(); // create object schema from existing table // if no table is provided it is looked up in the group diff --git a/object_store.hpp b/object_store.hpp index cacdcd8b..86bbe3ff 100644 --- a/object_store.hpp +++ b/object_store.hpp @@ -26,6 +26,7 @@ #include #include "object_schema.hpp" +#include "property.hpp" namespace realm { class ObjectSchemaValidationException;