diff --git a/include/matador/object/collection.hpp b/include/matador/object/collection.hpp index aa7be07..2188bda 100644 --- a/include/matador/object/collection.hpp +++ b/include/matador/object/collection.hpp @@ -21,7 +21,7 @@ public: collection(const collection& other) = default; void push_back(const value_type& value) { - proxy_->items().push_back(value); + proxy_->push_back(value); } iterator begin() { @@ -41,11 +41,11 @@ public: } [[nodiscard]] size_t size() const { - return proxy_->items().size(); + return proxy_->size(); } [[nodiscard]] bool empty() const { - return proxy_->items().empty(); + return proxy_->empty(); } void reset(std::shared_ptr> proxy) { diff --git a/source/orm/query/table.cpp b/source/orm/query/table.cpp index 1a930f5..daf1604 100644 --- a/source/orm/query/table.cpp +++ b/source/orm/query/table.cpp @@ -42,7 +42,9 @@ table::table(const table &other) , alias_(other.alias_) , schema_name_(other.schema_name_) , columns_(other.columns_) -, pk_column_index_(other.pk_column_index_){ +, pk_column_index_(other.pk_column_index_) +, join_column_index_(other.join_column_index_) +, inverse_join_column_index_(other.inverse_join_column_index_) { for (auto &col : columns_) { col.table(this); } @@ -64,6 +66,8 @@ table & table::operator=(table &&other) noexcept { alias_ = std::move(other.alias_); columns_ = std::move(other.columns_); pk_column_index_ = other.pk_column_index_; + join_column_index_ = other.join_column_index_; + inverse_join_column_index_ = other.inverse_join_column_index_; for (auto &col : columns_) { col.table(this); }