@@ -, +, @@ --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- Koha/Schema/Result/CirculationRule.pm | 8 ++++---- Koha/Schema/Result/Itemtype.pm | 19 +++++++++++++++++-- 4 files changed, 55 insertions(+), 10 deletions(-) --- a/Koha/Schema/Result/Branch.pm +++ a/Koha/Schema/Result/Branch.pm @@ -360,6 +360,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 club_enrollments Type: has_many @@ -596,8 +611,8 @@ Composing rels: L -> categorycode __PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:17:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:99U1YQ4iSum4LbBha4hDTQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gRtifDOxndV9CLNpFr0XpQ # You can replace this text with custom code or comments, and it will be preserved on regeneration --- a/Koha/Schema/Result/Category.pm +++ a/Koha/Schema/Result/Category.pm @@ -251,6 +251,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 default_borrower_circ_rule Type: might_have @@ -267,8 +282,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-07-08 13:37:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LH3DdDDYXaGsNsILAUZzng +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bb9BvkU4r6/J8rD9z2sDrA # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/CirculationRule.pm +++ a/Koha/Schema/Result/CirculationRule.pm @@ -135,13 +135,13 @@ __PACKAGE__->belongs_to( Type: belongs_to -Related object: L +Related object: L =cut __PACKAGE__->belongs_to( "categorycode", - "Koha::Schema::Result::Branchcategory", + "Koha::Schema::Result::Category", { categorycode => "categorycode" }, { is_deferrable => 1, @@ -172,8 +172,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-06 17:39:41 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZuAUJSu+FICBAxyxIcJQA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cp5jbv46L3LtPVxSla8dpA # You can replace this text with custom code or comments, and it will be preserved on regeneration --- a/Koha/Schema/Result/Itemtype.pm +++ a/Koha/Schema/Result/Itemtype.pm @@ -149,6 +149,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.itemtype" => "self.itemtype" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 default_branch_item_rule Type: might_have @@ -195,8 +210,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1GiikODklVISOurHX37qjA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7o86hHDFdmHShwhJ/iIzew # Use the ItemtypeLocalization view to create the join on localization our $LANGUAGE; --