Bug 12478: Manually add the many_to_many relationships
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Oct 2015 15:54:12 +0000 (16:54 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 26 Apr 2016 20:20:12 +0000 (20:20 +0000)
This will create the add_to_* accessors for us.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Koha/Schema/Result/SearchField.pm
Koha/Schema/Result/SearchMarcMap.pm

index b3ec809..09a3b6f 100644 (file)
@@ -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;
index 2b00f84..03bc943 100644 (file)
@@ -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;