From a2f0d33107c1eb5b203de05e80c0aa29a57ac8b3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 8 Nov 2022 14:41:43 -0300 Subject: [PATCH] Bug 31378: DBIC schema Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index c73799b15b..c86ca6736f 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -677,6 +677,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 identity_provider_domains + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "identity_provider_domains", + "Koha::Schema::Result::IdentityProviderDomain", + { "foreign.default_library_id" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 illrequests Type: has_many @@ -903,8 +918,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-16 13:09:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4nMDSKcOjnGsjUQkkyZtwg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-08 17:35:26 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QPqXuEigMeIBb9NKMSkrNw __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index ca935d98e2..d6281bf36a 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -362,9 +362,24 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 identity_provider_domains -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-23 16:29:27 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SKWF2QpqQtXoujwurKFQhA +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "identity_provider_domains", + "Koha::Schema::Result::IdentityProviderDomain", + { "foreign.default_category_id" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-08 17:35:26 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B89OgAY/KnJbQaHpu5Xdfg sub koha_object_class { 'Koha::Patron::Category'; -- 2.39.5