2 package Koha::Schema::Result::ClubHoldsToPatronHold;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubHoldsToPatronHold
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<club_holds_to_patron_holds>
22 __PACKAGE__->table("club_holds_to_patron_holds");
53 extra: {list => ["damaged","ageRestricted","itemAlreadyOnHold","tooManyHoldsForThisRecord","tooManyReservesToday","tooManyReserves","notReservable","cannotReserveFromOtherBranches","libraryNotFound","libraryNotPickupLocation","cannotBeTransferred","noReservesAllowed"]}
64 __PACKAGE__->add_columns(
66 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
81 "tooManyHoldsForThisRecord",
82 "tooManyReservesToday",
85 "cannotReserveFromOtherBranches",
87 "libraryNotPickupLocation",
88 "cannotBeTransferred",
95 { data_type => "varchar", is_nullable => 1, size => 100 },
108 __PACKAGE__->set_primary_key("id");
116 Related object: L<Koha::Schema::Result::ClubHold>
120 __PACKAGE__->belongs_to(
122 "Koha::Schema::Result::ClubHold",
123 { id => "club_hold_id" },
124 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
131 Related object: L<Koha::Schema::Result::Reserve>
135 __PACKAGE__->belongs_to(
137 "Koha::Schema::Result::Reserve",
138 { reserve_id => "hold_id" },
142 on_delete => "CASCADE",
143 on_update => "CASCADE",
151 Related object: L<Koha::Schema::Result::Borrower>
155 __PACKAGE__->belongs_to(
157 "Koha::Schema::Result::Borrower",
158 { borrowernumber => "patron_id" },
159 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
163 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-04 18:43:05
164 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KjJWzFhPwQk0SZqrHQ4Alw
166 sub koha_objects_class {
167 'Koha::Club::Hold::PatronHolds';
169 sub koha_object_class {
170 'Koha::Club::Hold::PatronHold';