[Koha-devel] Question about Schema

Kivilahti Olli-Antti olli-antti.kivilahti at jns.fi
Tue Sep 8 15:01:40 CEST 2015


I did provide a improvement suggestion,

> Eg. fix the silly join-relations itemnumber, biblionumber, biblioitemnumber.
> Those are easily overridden in the manual modifications section at the
> bottom of the Koha/Schema/Result/*.pm-files.


but here is a link to the DBIx::Class manual reagrding join mapping:

https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Joining.pod

Here is a code example from Koha/Schema/Result/Serial.pm

# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-08-18 18:03:03
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q42+PuyJqQu7t1AuVaVdig

__PACKAGE__->belongs_to(
   "subscription",
   "Koha::Schema::Result::Subscription",
   { "foreign.subscriptionid" => "self.subscriptionid" },
   { cascade_copy => 0, cascade_delete => 0 },
);

Olli-Antti Kivilahti
Järjestelmäkeittäjä
vaarakirjastot.fi
+358 50 449 7763
--Powered by Kubuntu Linux!

On 08.09.2015 15:18, Owen Leonard wrote:
>> Fix the problems, don't exaggerate them!
> Can you please make constructive suggestions without resorting to
> childish insults?
>
> Thanks,
>
>    -- Owen
>


More information about the Koha-devel mailing list