Lines 708-714
__PACKAGE__->belongs_to(
Link Here
|
708 |
"branchcode", |
708 |
"branchcode", |
709 |
"Koha::Schema::Result::Branch", |
709 |
"Koha::Schema::Result::Branch", |
710 |
{ branchcode => "branchcode" }, |
710 |
{ branchcode => "branchcode" }, |
711 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
711 |
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
712 |
); |
712 |
); |
713 |
|
713 |
|
714 |
=head2 categorycode |
714 |
=head2 categorycode |
Lines 723-729
__PACKAGE__->belongs_to(
Link Here
|
723 |
"categorycode", |
723 |
"categorycode", |
724 |
"Koha::Schema::Result::Category", |
724 |
"Koha::Schema::Result::Category", |
725 |
{ categorycode => "categorycode" }, |
725 |
{ categorycode => "categorycode" }, |
726 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
726 |
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
727 |
); |
727 |
); |
728 |
|
728 |
|
729 |
=head2 course_instructors |
729 |
=head2 course_instructors |
Lines 756-761
__PACKAGE__->has_many(
Link Here
|
756 |
{ cascade_copy => 0, cascade_delete => 0 }, |
756 |
{ cascade_copy => 0, cascade_delete => 0 }, |
757 |
); |
757 |
); |
758 |
|
758 |
|
|
|
759 |
=head2 discharges |
760 |
|
761 |
Type: has_many |
762 |
|
763 |
Related object: L<Koha::Schema::Result::Discharge> |
764 |
|
765 |
=cut |
766 |
|
767 |
__PACKAGE__->has_many( |
768 |
"discharges", |
769 |
"Koha::Schema::Result::Discharge", |
770 |
{ "foreign.borrower" => "self.borrowernumber" }, |
771 |
{ cascade_copy => 0, cascade_delete => 0 }, |
772 |
); |
773 |
|
759 |
=head2 hold_fill_targets |
774 |
=head2 hold_fill_targets |
760 |
|
775 |
|
761 |
Type: has_many |
776 |
Type: has_many |
Lines 1072-1079
Composing rels: L</course_instructors> -> course
Link Here
|
1072 |
__PACKAGE__->many_to_many("courses", "course_instructors", "course"); |
1087 |
__PACKAGE__->many_to_many("courses", "course_instructors", "course"); |
1073 |
|
1088 |
|
1074 |
|
1089 |
|
1075 |
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 16:31:19 |
1090 |
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-01-08 18:24:14 |
1076 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z4kW3xYX1CyrwvGdZu32nA |
1091 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FcAcg1eLxgMJFuolIQ2sZg |
1077 |
|
1092 |
|
1078 |
|
1093 |
|
1079 |
# You can replace this text with custom content, and it will be preserved on regeneration |
1094 |
# You can replace this text with custom content, and it will be preserved on regeneration |