fixed access has_many functions
This commit is contained in:
@@ -78,22 +78,22 @@ void belongs_to(Operator &op, const char *id, Type &value) {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user