used make_object for object_ptr in tests
This commit is contained in:
@@ -139,7 +139,7 @@ public:
|
||||
on_foreign_object(obj, attr);
|
||||
}
|
||||
template<class Collection>
|
||||
static void on_has_many(const char * /*id*/, Collection &con, const char * /*join_column*/, const utils::foreign_attributes & ) {}
|
||||
static void on_has_many(const char * /*id*/, Collection &/*con*/, const char * /*join_column*/, const utils::foreign_attributes & ) {}
|
||||
template<class Collection>
|
||||
void on_has_many_to_many(const char *id, Collection &con, const char *join_column, const char *inverse_join_column, const utils::foreign_attributes & ) {
|
||||
if (id == nullptr || join_column == nullptr || inverse_join_column == nullptr) {
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "matador/query/value_extractor.hpp"
|
||||
|
||||
#include "matador/object/object_ptr.hpp"
|
||||
|
||||
#include "matador/utils/placeholder.hpp"
|
||||
|
||||
namespace matador::query {
|
||||
@@ -21,6 +23,10 @@ public:
|
||||
query_values_intermediate values(const Type &obj) {
|
||||
return values(value_extractor::extract(obj));
|
||||
}
|
||||
template<class Type>
|
||||
query_values_intermediate values(const object::object_ptr<Type> &obj) {
|
||||
return values(*obj);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user