2 package Koha
::Schema
::Result
::ClubHold
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubHold
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<club_holds>
22 __PACKAGE__
->table("club_holds");
52 data_type: 'timestamp'
53 datetime_undef_if_invalid: 1
54 default_value: current_timestamp
59 __PACKAGE__
->add_columns(
61 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
63 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
65 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
67 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
70 data_type
=> "timestamp",
71 datetime_undef_if_invalid
=> 1,
72 default_value
=> \"current_timestamp
",
87 __PACKAGE__->set_primary_key("id
");
95 Related object: L<Koha::Schema::Result::Biblio>
99 __PACKAGE__->belongs_to(
101 "Koha
::Schema
::Result
::Biblio
",
102 { biblionumber => "biblio_id
" },
103 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
110 Related object: L<Koha::Schema::Result::Club>
114 __PACKAGE__->belongs_to(
116 "Koha
::Schema
::Result
::Club
",
118 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
121 =head2 club_holds_to_patron_holds
125 Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
129 __PACKAGE__->has_many(
130 "club_holds_to_patron_holds
",
131 "Koha
::Schema
::Result
::ClubHoldsToPatronHold
",
132 { "foreign
.club_hold_id
" => "self
.id
" },
133 { cascade_copy => 0, cascade_delete => 0 },
140 Related object: L<Koha::Schema::Result::Item>
144 __PACKAGE__->belongs_to(
146 "Koha
::Schema
::Result
::Item
",
147 { itemnumber => "item_id
" },
151 on_delete => "CASCADE
",
152 on_update => "CASCADE
",
157 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47
158 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FYGXVx1P2R+dGbeP1xshPA
160 sub koha_objects_class {
163 sub koha_object_class {