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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 330-335 __PACKAGE__->has_many( Link Here
330
  { cascade_copy => 0, cascade_delete => 0 },
330
  { cascade_copy => 0, cascade_delete => 0 },
331
);
331
);
332
332
333
=head2 illrequests
334
335
Type: has_many
336
337
Related object: L<Koha::Schema::Result::Illrequest>
338
339
=cut
340
341
__PACKAGE__->has_many(
342
  "illrequests",
343
  "Koha::Schema::Result::Illrequest",
344
  { "foreign.biblio_id" => "self.biblionumber" },
345
  { cascade_copy => 0, cascade_delete => 0 },
346
);
347
333
=head2 item_groups
348
=head2 item_groups
334
349
335
Type: has_many
350
Type: has_many
Lines 586-593 __PACKAGE__->has_many( Link Here
586
);
601
);
587
602
588
603
589
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 14:23:57
604
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-26 08:46:17
590
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j4elmpNlSt3eMlzF1yXCxg
605
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BHzc1nBWWsgVIGoCBsbEEA
591
606
592
__PACKAGE__->has_many(
607
__PACKAGE__->has_many(
593
  "biblioitem",
608
  "biblioitem",
(-)a/Koha/Schema/Result/Illrequest.pm (-4 / +24 lines)
Lines 43-48 Patron associated with request Link Here
43
=head2 biblio_id
43
=head2 biblio_id
44
44
45
  data_type: 'integer'
45
  data_type: 'integer'
46
  is_foreign_key: 1
46
  is_nullable: 1
47
  is_nullable: 1
47
48
48
Potential bib linked to request
49
Potential bib linked to request
Lines 187-193 __PACKAGE__->add_columns( Link Here
187
  "borrowernumber",
188
  "borrowernumber",
188
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
189
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
189
  "biblio_id",
190
  "biblio_id",
190
  { data_type => "integer", is_nullable => 1 },
191
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
191
  "due_date",
192
  "due_date",
192
  {
193
  {
193
    data_type => "datetime",
194
    data_type => "datetime",
Lines 245-250 __PACKAGE__->set_primary_key("illrequest_id"); Link Here
245
246
246
=head1 RELATIONS
247
=head1 RELATIONS
247
248
249
=head2 biblio
250
251
Type: belongs_to
252
253
Related object: L<Koha::Schema::Result::Biblio>
254
255
=cut
256
257
__PACKAGE__->belongs_to(
258
  "biblio",
259
  "Koha::Schema::Result::Biblio",
260
  { biblionumber => "biblio_id" },
261
  {
262
    is_deferrable => 1,
263
    join_type     => "LEFT",
264
    on_delete     => "SET NULL",
265
    on_update     => "CASCADE",
266
  },
267
);
268
248
=head2 borrowernumber
269
=head2 borrowernumber
249
270
250
Type: belongs_to
271
Type: belongs_to
Lines 331-338 __PACKAGE__->belongs_to( Link Here
331
);
352
);
332
353
333
354
334
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-23 18:44:13
355
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-26 08:46:17
335
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:on9OCRON/U0uR+m9aPIKPg
356
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a/x5km4Wh3NDancIsj9NwA
336
357
337
__PACKAGE__->has_many(
358
__PACKAGE__->has_many(
338
  "comments",
359
  "comments",
339
- 

Return to bug 22440