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-06-02 18:37:16
182
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8B7JDt2YoStGs+3997+Mw
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-06-02 18:37:16
381
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A3iHpf4nDeIpPsapNzdv8w
411
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3OKtvxylXpU9wl6pUKpSSQ
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 => 1, size => 10 },
249
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
240
  "desk_id",
250
  "desk_id",
Lines 390-395 __PACKAGE__->belongs_to( Link Here
390
  },
400
  },
391
);
401
);
392
402
403
=head2 item_group
404
405
Type: belongs_to
406
407
Related object: L<Koha::Schema::Result::ItemGroup>
408
409
=cut
410
411
__PACKAGE__->belongs_to(
412
  "item_group",
413
  "Koha::Schema::Result::ItemGroup",
414
  { item_group_id => "item_group_id" },
415
  {
416
    is_deferrable => 1,
417
    join_type     => "LEFT",
418
    on_delete     => "CASCADE",
419
    on_update     => "CASCADE",
420
  },
421
);
422
393
=head2 itemnumber
423
=head2 itemnumber
394
424
395
Type: belongs_to
425
Type: belongs_to
Lines 431-438 __PACKAGE__->belongs_to( Link Here
431
);
461
);
432
462
433
463
434
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:08:09
464
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 18:37:16
435
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Q8/GFCOkXdn+jg69HZ0GQ
465
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H5wYFB4A1BoAWPYtJxJntQ
436
466
437
__PACKAGE__->belongs_to(
467
__PACKAGE__->belongs_to(
438
  "item",
468
  "item",
439
- 

Return to bug 24860