Bugzilla – Attachment 178600 Details for
Bug 38924
Introduce an organization level loan 'Quota' system for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38924: Add relations after the hash in DBIC
Bug-38924-Add-relations-after-the-hash-in-DBIC.patch (text/plain), 1.17 KB, created by
Martin Renvoize (ashimema)
on 2025-02-24 16:29:59 UTC
(
hide
)
Description:
Bug 38924: Add relations after the hash in DBIC
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-24 16:29:59 UTC
Size:
1.17 KB
patch
obsolete
>From 5ddd707c8e689818afdd1c0d92ab32feb2a01e33 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 7 Feb 2025 12:11:52 +0000 >Subject: [PATCH] Bug 38924: Add relations after the hash in DBIC > >This adds additional relations to our DBIC classes to allow relation >traversal in our Koha::Objects >--- > Koha/Schema/Result/Issue.pm | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index 813ab4e4385..3c06ccafb63 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -425,6 +425,32 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 quota_usages >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::PatronQuotaUsage> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ 'quota_usages' => 'MyApp::Schema::Result::PatronQuotaUsage', >+ 'issue_id' >+); >+ >+=head2 quotas >+ >+Type: many_to_many >+ >+Related object: L<Koha::Schema::Result::PatronQuota> >+ >+=cut >+ >+__PACKAGE__->many_to_many( >+ 'patron_quotas' => 'patron_quota_usages', >+ 'patron_quota' >+); >+ > sub koha_object_class { > 'Koha::Checkout'; > } >-- >2.48.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38924
:
178582
|
178583
|
178584
|
178585
|
178586
|
178587
|
178588
|
178589
|
178590
|
178591
|
178592
|
178593
|
178594
|
178595
|
178596
|
178597
|
178598
|
178599
|
178600
|
178601
|
178602
|
178603
|
178604
|
178605
|
178606
|
178607
|
178608
|
185631
|
185632
|
185633
|
185634
|
185635
|
185636
|
185637
|
185638
|
185639
|
185640
|
185641
|
185642
|
185643
|
185644
|
185645
|
185646
|
185647
|
185648
|
185649
|
185650
|
185651
|
185652
|
185653
|
185654
|
185655
|
185656
|
185657
|
185675
|
185676
|
185677
|
185678
|
185679
|
185680
|
185681
|
185682
|
185683
|
185684
|
185685
|
185686
|
185687
|
185688
|
185689
|
185690
|
185691
|
185692
|
185693
|
185694
|
185695
|
185696
|
185697
|
185698
|
185699
|
185700
|
185701
|
185702