fixed has many and belongs to eager loading via sql join
This commit is contained in:
@@ -24,8 +24,8 @@ column::column(const sql_function_t func, std::string name)
|
||||
, name(std::move(name))
|
||||
, function_(func) {}
|
||||
|
||||
column::column(const struct sql::table& t, std::string name, std::string as)
|
||||
: table_(std::make_shared<sql::table>(t))
|
||||
column::column(const table& tab, std::string name, std::string as)
|
||||
: table_(std::make_shared<table>(tab))
|
||||
, name(std::move(name))
|
||||
, alias(std::move(as)) {
|
||||
table_->columns.push_back(*this);
|
||||
|
||||
Reference in New Issue
Block a user