added id to has_many

This commit is contained in:
Sascha Kühl 2025-02-07 11:46:50 +01:00
parent 27d9bac316
commit 8ef78bb658
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ public:
template<class Pointer> template<class Pointer>
void on_has_one(const char * /*id*/, Pointer &/*x*/, const utils::foreign_attributes &/*attr*/) {} void on_has_one(const char * /*id*/, Pointer &/*x*/, const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType> template<class ContainerType>
void on_has_many(ContainerType &, const char *, const utils::foreign_attributes &/*attr*/) {} void on_has_many(const char * /*id*/, ContainerType &, const char *, const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType> template<class ContainerType>
void on_has_many_to_many(const char *id, ContainerType &c, const char *join_column, const char *inverse_join_column, const utils::foreign_attributes &/*attr*/) {} void on_has_many_to_many(const char *id, ContainerType &c, const char *join_column, const char *inverse_join_column, const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType> template<class ContainerType>
@ -93,7 +93,7 @@ public:
columns_.push_back(fk_column_generator_.generate(id, *x, ref_table, ref_column)); columns_.push_back(fk_column_generator_.generate(id, *x, ref_table, ref_column));
} }
template<class ContainerType> template<class ContainerType>
void on_has_many(ContainerType &, const char *, const utils::foreign_attributes &/*attr*/) {} void on_has_many(const char *id, ContainerType &, const char *, const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType> template<class ContainerType>
void on_has_many_to_many(const char *id, ContainerType &c, const char *join_column, const char *inverse_join_column, const utils::foreign_attributes &/*attr*/) {} void on_has_many_to_many(const char *id, ContainerType &c, const char *join_column, const char *inverse_join_column, const utils::foreign_attributes &/*attr*/) {}
template<class ContainerType> template<class ContainerType>

View File

@ -87,7 +87,7 @@ public:
} }
} }
template<class ContainerType> template<class ContainerType>
void on_has_many(ContainerType &, const char *, const utils::foreign_attributes &attr) void on_has_many(const char * /*id*/, ContainerType &, const char *, const utils::foreign_attributes &attr)
{ {
if (attr.fetch() == utils::fetch_type::LAZY || force_lazy_) { if (attr.fetch() == utils::fetch_type::LAZY || force_lazy_) {
return; return;