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

(-)a/Koha/Schema/Result/Issue.pm (-17 / +2 lines)
Lines 320-343 __PACKAGE__->belongs_to( Link Here
320
  },
320
  },
321
);
321
);
322
322
323
=head2 return_claim
324
323
325
Type: might_have
324
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
326
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDcP8DNMT8sLUmzBFfz3fg
327
Related object: L<Koha::Schema::Result::ReturnClaim>
328
329
=cut
330
331
__PACKAGE__->might_have(
332
  "return_claim",
333
  "Koha::Schema::Result::ReturnClaim",
334
  { "foreign.issue_id" => "self.issue_id" },
335
  { cascade_copy => 0, cascade_delete => 0 },
336
);
337
338
339
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
340
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CthteyTlda7sJnOS/TI2Eg
341
326
342
__PACKAGE__->add_columns(
327
__PACKAGE__->add_columns(
343
    '+auto_renew'      => { is_boolean => 1 },
328
    '+auto_renew'      => { is_boolean => 1 },
(-)a/Koha/Schema/Result/ReturnClaim.pm (-25 / +3 lines)
Lines 42-48 ID of the item Link Here
42
=head2 issue_id
42
=head2 issue_id
43
43
44
  data_type: 'integer'
44
  data_type: 'integer'
45
  is_foreign_key: 1
46
  is_nullable: 1
45
  is_nullable: 1
47
46
48
ID of the checkout that triggered the claim
47
ID of the checkout that triggered the claim
Lines 126-132 __PACKAGE__->add_columns( Link Here
126
  "itemnumber",
125
  "itemnumber",
127
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
126
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
128
  "issue_id",
127
  "issue_id",
129
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
128
  { data_type => "integer", is_nullable => 1 },
130
  "borrowernumber",
129
  "borrowernumber",
131
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
130
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
132
  "notes",
131
  "notes",
Lines 222-247 __PACKAGE__->belongs_to( Link Here
222
  },
221
  },
223
);
222
);
224
223
225
=head2 issue
226
227
Type: belongs_to
228
229
Related object: L<Koha::Schema::Result::Issue>
230
231
=cut
232
233
__PACKAGE__->belongs_to(
234
  "issue",
235
  "Koha::Schema::Result::Issue",
236
  { issue_id => "issue_id" },
237
  {
238
    is_deferrable => 1,
239
    join_type     => "LEFT",
240
    on_delete     => "SET NULL",
241
    on_update     => "CASCADE",
242
  },
243
);
244
245
=head2 itemnumber
224
=head2 itemnumber
246
225
247
Type: belongs_to
226
Type: belongs_to
Lines 298-305 __PACKAGE__->belongs_to( Link Here
298
);
277
);
299
278
300
279
301
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
280
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qcgfUNzvsOB0UMm/94mZMQ
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik93SD3kLNecIyRgsBVKDQ
303
282
304
sub koha_objects_class {
283
sub koha_objects_class {
305
    'Koha::Checkouts::ReturnClaims';
284
    'Koha::Checkouts::ReturnClaims';
306
- 

Return to bug 29495