2 package Koha
::Schema
::Result
::Serialitem
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Serialitem
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<serialitems>
22 __PACKAGE__
->table("serialitems");
40 __PACKAGE__
->add_columns(
42 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
44 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
51 =item * L</itemnumber>
57 __PACKAGE__
->set_primary_key("itemnumber");
65 Related object: L<Koha::Schema::Result::Item>
69 __PACKAGE__
->belongs_to(
71 "Koha::Schema::Result::Item",
72 { itemnumber
=> "itemnumber" },
73 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
80 Related object: L<Koha::Schema::Result::Serial>
84 __PACKAGE__
->belongs_to(
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
{
98 sub koha_objects_class
{
99 'Koha::Serial::Items';