Bug 18936: (follow-up) Add cloning of circulation rules back to Koha
[koha.git] / Koha / Schema / Result / Serialitem.pm
blob5b838eab15f773c0bd116198b71717782ceaefb9
1 use utf8;
2 package Koha::Schema::Result::Serialitem;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Serialitem
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<serialitems>
20 =cut
22 __PACKAGE__->table("serialitems");
24 =head1 ACCESSORS
26 =head2 itemnumber
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 serialid
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =cut
40 __PACKAGE__->add_columns(
41 "itemnumber",
42 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43 "serialid",
44 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47 =head1 PRIMARY KEY
49 =over 4
51 =item * L</itemnumber>
53 =back
55 =cut
57 __PACKAGE__->set_primary_key("itemnumber");
59 =head1 RELATIONS
61 =head2 itemnumber
63 Type: belongs_to
65 Related object: L<Koha::Schema::Result::Item>
67 =cut
69 __PACKAGE__->belongs_to(
70 "itemnumber",
71 "Koha::Schema::Result::Item",
72 { itemnumber => "itemnumber" },
73 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76 =head2 serialid
78 Type: belongs_to
80 Related object: L<Koha::Schema::Result::Serial>
82 =cut
84 __PACKAGE__->belongs_to(
85 "serialid",
86 "Koha::Schema::Result::Serial",
87 { serialid => "serialid" },
88 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-13 13:53:21
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z43jqmURevaJeui7l8ThlQ
95 sub koha_object_class {
96 'Koha::Serial::Item';
98 sub koha_objects_class {
99 'Koha::Serial::Items';