From 81c93b2996a83cd8d9b5cade659c5ebc05fd3076 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Oct 2015 16:54:12 +0100 Subject: [PATCH] Bug 12478: Manually add the many_to_many relationships This will create the add_to_* accessors for us. --- Koha/Schema/Result/SearchField.pm | 2 +- Koha/Schema/Result/SearchMarcMap.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index b3ec809..09a3b6f 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -117,6 +117,6 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4MJO9216VF37w7PlWCcBKg +__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/SearchMarcMap.pm b/Koha/Schema/Result/SearchMarcMap.pm index 2b00f84..03bc943 100644 --- a/Koha/Schema/Result/SearchMarcMap.pm +++ b/Koha/Schema/Result/SearchMarcMap.pm @@ -125,6 +125,6 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKMOxnAJST3zNN6Kxj2ynA +__PACKAGE__->many_to_many("search_fields", "search_marc_to_fields", "search_field"); -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.1.0