]> git.koha-community.org Git - koha.git/commit
Bug 22700: Make biblio_metadata prefetchable from Koha::Biblio
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Apr 2019 16:46:04 +0000 (13:46 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Apr 2019 10:47:42 +0000 (10:47 +0000)
commit0e762da67092e8bd04e37908e9e1419ea16f70e3
tree88110395e628871f0f31b315360468db21d087dd
parentf76f93ecf191231036c96b17fceccf819247959f
Bug 22700: Make biblio_metadata prefetchable from Koha::Biblio

This patch makes $biblio->metadata be prefetchable as the Coding
guidelines require.

A new has_one relationship is added in the Biblio schema, named as the
accessor to also convey to proposed guidelines for readability.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: No regressions!
- Sign off :-D

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Biblio.pm
Koha/Schema/Result/Biblio.pm