diff --git a/src/caosdb/entity.cpp b/src/caosdb/entity.cpp index 50dbbafaddf6de8cfd0d9440de51eae6f8b8afa7..f90f8fbb434a9c1aa607a9c1a4d81209289a661b 100644 --- a/src/caosdb/entity.cpp +++ b/src/caosdb/entity.cpp @@ -57,6 +57,10 @@ auto Parent::SetId(const std::string &id) -> void { this->wrapped->set_id(id); } return this->wrapped->name(); } +[[nodiscard]] auto Parent::GetDescription() const -> const std::string & { + return this->wrapped->description(); +} + auto Parents::Append(const Parent &parent) -> void { auto *destination = this->wrapped->Add(); destination->Swap(parent.wrapped);