View | Details | Raw Unified | Return to bug 24860
Collapse All | Expand All

(-)a/Koha/Schema/Result/ItemGroup.pm (-2 / +32 lines)
Lines 147-155 __PACKAGE__->has_many( Link Here
147
  { cascade_copy => 0, cascade_delete => 0 },
147
  { cascade_copy => 0, cascade_delete => 0 },
148
);
148
);
149
149
150
=head2 old_reserves
150
151
151
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20
152
Type: has_many
152
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YO7VdfzHDqBjGHt7vQX7gw
153
154
Related object: L<Koha::Schema::Result::OldReserve>
155
156
=cut
157
158
__PACKAGE__->has_many(
159
  "old_reserves",
160
  "Koha::Schema::Result::OldReserve",
161
  { "foreign.item_group_id" => "self.item_group_id" },
162
  { cascade_copy => 0, cascade_delete => 0 },
163
);
164
165
=head2 reserves
166
167
Type: has_many
168
169
Related object: L<Koha::Schema::Result::Reserve>
170
171
=cut
172
173
__PACKAGE__->has_many(
174
  "reserves",
175
  "Koha::Schema::Result::Reserve",
176
  { "foreign.item_group_id" => "self.item_group_id" },
177
  { cascade_copy => 0, cascade_delete => 0 },
178
);
179
180
181
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-28 18:11:37
182
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7E4YokAG1YYBFNyth/HoEw
153
183
154
sub koha_objects_class {
184
sub koha_objects_class {
155
    'Koha::Biblio::ItemGroups';
185
    'Koha::Biblio::ItemGroups';
(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +32 lines)
Lines 54-59 the date the hold was places Link Here
54
54
55
foreign key from the biblio table defining which bib record this hold is on
55
foreign key from the biblio table defining which bib record this hold is on
56
56
57
=head2 item_group_id
58
59
  data_type: 'integer'
60
  is_foreign_key: 1
61
  is_nullable: 1
62
63
foreign key from the item_groups table defining if this is an item group level hold
64
57
=head2 branchcode
65
=head2 branchcode
58
66
59
  data_type: 'varchar'
67
  data_type: 'varchar'
Lines 226-231 __PACKAGE__->add_columns( Link Here
226
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
234
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
227
  "biblionumber",
235
  "biblionumber",
228
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
236
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
237
  "item_group_id",
238
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
229
  "branchcode",
239
  "branchcode",
230
  { data_type => "varchar", is_nullable => 1, size => 10 },
240
  { data_type => "varchar", is_nullable => 1, size => 10 },
231
  "desk_id",
241
  "desk_id",
Lines 336-341 __PACKAGE__->belongs_to( Link Here
336
  },
346
  },
337
);
347
);
338
348
349
=head2 item_group
350
351
Type: belongs_to
352
353
Related object: L<Koha::Schema::Result::ItemGroup>
354
355
=cut
356
357
__PACKAGE__->belongs_to(
358
  "item_group",
359
  "Koha::Schema::Result::ItemGroup",
360
  { item_group_id => "item_group_id" },
361
  {
362
    is_deferrable => 1,
363
    join_type     => "LEFT",
364
    on_delete     => "SET NULL",
365
    on_update     => "SET NULL",
366
  },
367
);
368
339
=head2 itemnumber
369
=head2 itemnumber
340
370
341
Type: belongs_to
371
Type: belongs_to
Lines 377-384 __PACKAGE__->belongs_to( Link Here
377
);
407
);
378
408
379
409
380
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:08:09
410
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-28 18:11:37
381
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A3iHpf4nDeIpPsapNzdv8w
411
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SzRPtAXBNm8VnBqkljxfQw
382
412
383
__PACKAGE__->belongs_to(
413
__PACKAGE__->belongs_to(
384
  "item",
414
  "item",
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +32 lines)
Lines 57-62 the date the hold was placed Link Here
57
57
58
foreign key from the biblio table defining which bib record this hold is on
58
foreign key from the biblio table defining which bib record this hold is on
59
59
60
=head2 item_group_id
61
62
  data_type: 'integer'
63
  is_foreign_key: 1
64
  is_nullable: 1
65
66
foreign key from the item_groups table defining if this is an item group level hold
67
60
=head2 branchcode
68
=head2 branchcode
61
69
62
  data_type: 'varchar'
70
  data_type: 'varchar'
Lines 235-240 __PACKAGE__->add_columns( Link Here
235
    is_foreign_key => 1,
243
    is_foreign_key => 1,
236
    is_nullable    => 0,
244
    is_nullable    => 0,
237
  },
245
  },
246
  "item_group_id",
247
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
238
  "branchcode",
248
  "branchcode",
239
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
249
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
240
  "desk_id",
250
  "desk_id",
Lines 385-390 __PACKAGE__->belongs_to( Link Here
385
  },
395
  },
386
);
396
);
387
397
398
=head2 item_group
399
400
Type: belongs_to
401
402
Related object: L<Koha::Schema::Result::ItemGroup>
403
404
=cut
405
406
__PACKAGE__->belongs_to(
407
  "item_group",
408
  "Koha::Schema::Result::ItemGroup",
409
  { item_group_id => "item_group_id" },
410
  {
411
    is_deferrable => 1,
412
    join_type     => "LEFT",
413
    on_delete     => "CASCADE",
414
    on_update     => "CASCADE",
415
  },
416
);
417
388
=head2 itemnumber
418
=head2 itemnumber
389
419
390
Type: belongs_to
420
Type: belongs_to
Lines 426-433 __PACKAGE__->belongs_to( Link Here
426
);
456
);
427
457
428
458
429
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-22 17:37:42
459
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-28 18:11:37
430
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kYRPPeoVo0WMk1gH+qmi/w
460
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1lqj6ZevsRVDjquZl5YabQ
431
461
432
__PACKAGE__->belongs_to(
462
__PACKAGE__->belongs_to(
433
  "item",
463
  "item",
434
- 

Return to bug 24860