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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1391-1396 __PACKAGE__->has_many( Link Here
1391
  { cascade_copy => 0, cascade_delete => 0 },
1391
  { cascade_copy => 0, cascade_delete => 0 },
1392
);
1392
);
1393
1393
1394
=head2 hold_groups
1395
1396
Type: has_many
1397
1398
Related object: L<Koha::Schema::Result::HoldGroup>
1399
1400
=cut
1401
1402
__PACKAGE__->has_many(
1403
  "hold_groups",
1404
  "Koha::Schema::Result::HoldGroup",
1405
  { "foreign.borrowernumber" => "self.borrowernumber" },
1406
  { cascade_copy => 0, cascade_delete => 0 },
1407
);
1408
1394
=head2 housebound_profile
1409
=head2 housebound_profile
1395
1410
1396
Type: might_have
1411
Type: might_have
Lines 2197-2204 Composing rels: L</user_permissions> -> permission Link Here
2197
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2212
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2198
2213
2199
2214
2200
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
2215
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-16 10:57:50
2201
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XFOe2X4k2DUziaNS5pWd/Q
2216
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1mCQb2VuHB10JWtlJXTBWw
2202
2217
2203
__PACKAGE__->belongs_to(
2218
__PACKAGE__->belongs_to(
2204
  "library",
2219
  "library",
(-)a/Koha/Schema/Result/HoldGroup.pm (-3 / +32 lines)
Lines 30-35 __PACKAGE__->table("hold_groups"); Link Here
30
  is_auto_increment: 1
30
  is_auto_increment: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
=head2 borrowernumber
34
35
  data_type: 'integer'
36
  is_foreign_key: 1
37
  is_nullable: 1
38
39
foreign key, linking this to the borrowers table
40
33
=cut
41
=cut
34
42
35
__PACKAGE__->add_columns(
43
__PACKAGE__->add_columns(
Lines 40-45 __PACKAGE__->add_columns( Link Here
40
    is_auto_increment => 1,
48
    is_auto_increment => 1,
41
    is_nullable => 0,
49
    is_nullable => 0,
42
  },
50
  },
51
  "borrowernumber",
52
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
43
);
53
);
44
54
45
=head1 PRIMARY KEY
55
=head1 PRIMARY KEY
Lines 56-61 __PACKAGE__->set_primary_key("hold_group_id"); Link Here
56
66
57
=head1 RELATIONS
67
=head1 RELATIONS
58
68
69
=head2 borrowernumber
70
71
Type: belongs_to
72
73
Related object: L<Koha::Schema::Result::Borrower>
74
75
=cut
76
77
__PACKAGE__->belongs_to(
78
  "borrowernumber",
79
  "Koha::Schema::Result::Borrower",
80
  { borrowernumber => "borrowernumber" },
81
  {
82
    is_deferrable => 1,
83
    join_type     => "LEFT",
84
    on_delete     => "CASCADE",
85
    on_update     => "RESTRICT",
86
  },
87
);
88
59
=head2 old_reserves
89
=head2 old_reserves
60
90
61
Type: has_many
91
Type: has_many
Lines 87-94 __PACKAGE__->has_many( Link Here
87
);
117
);
88
118
89
119
90
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-03 17:08:22
120
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-16 10:57:50
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m3/7K38O11278k5glHlXAA
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y1eP6naEI2vi94gTHqtubw
92
122
93
123
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
124
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
- 

Return to bug 40517