fixed access has_many functions

This commit is contained in:
Sascha Kühl 2025-02-07 11:44:42 +01:00
parent b8df32bdf9
commit c591302063
1 changed files with 4 additions and 4 deletions

View File

@ -78,22 +78,22 @@ void belongs_to(Operator &op, const char *id, Type &value) {
} }
template<class Operator, class Type, template<class ...> class ContainerType> template<class Operator, class Type, template<class ...> class ContainerType>
void has_many(Operator &op, const char *id, container<Type, ContainerType> &c, const char *join_column, const utils::foreign_attributes &attr) { void has_many(Operator &op, const char *id, ContainerType<Type> &c, const char *join_column, const utils::foreign_attributes &attr) {
op.on_has_many(id, c, join_column, attr); op.on_has_many(id, c, join_column, attr);
} }
template<class Operator, class Type, template<class ...> class ContainerType> template<class Operator, class Type, template<class ...> class ContainerType>
void has_many(Operator &op, const char *id, container<Type, ContainerType> &c, const char *join_column) { void has_many(Operator &op, const char *id, ContainerType<Type> &c, const char *join_column) {
op.on_has_many(id, c, join_column); op.on_has_many(id, c, join_column);
} }
template<class Operator, class Type, template<class ...> class ContainerType> template<class Operator, class Type, template<class ...> class ContainerType>
void has_many(Operator &op, const char *id, container<Type, ContainerType> &c, const utils::foreign_attributes &attr) { void has_many(Operator &op, const char *id, ContainerType<Type> &c, const utils::foreign_attributes &attr) {
op.on_has_many(id, c, attr); op.on_has_many(id, c, attr);
} }
template<class Operator, class Type, template<class ...> class ContainerType> template<class Operator, class Type, template<class ...> class ContainerType>
void has_many(Operator &op, const char *id, container<Type, ContainerType> &c) { void has_many(Operator &op, const char *id, ContainerType<Type> &c) {
op.on_has_many(id, c); op.on_has_many(id, c);
} }