]> git.koha-community.org Git - koha.git/commit
Bug 24440: (follow-up) Make related objects prefetchable
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Jan 2020 03:54:27 +0000 (00:54 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 10:18:00 +0000 (10:18 +0000)
commitffb5fb60ed3e8c5aeb534d60bf81bde80f309484
tree838e430abb938d9d29ac110d0fd71985e7ecb7d6
parenta905fd8a3847ff4f035759aef575d8c6ad77fea2
Bug 24440: (follow-up) Make related objects prefetchable

This patch creates aliases for the relations used to retrieve the linked
objects from other tables. It makes the accessor names match the used
relation name, for consistency.

This is important for code trying to be smart and guessing what needs to
be prefetched, like the API code.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Order.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat (1)
=> SUCCESS: Tests pass! No behaviour change
4. Verify the POD changes make sense
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Order.pm
Koha/Schema/Result/Aqorder.pm