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

(-)a/Koha/Schema/Result/Borrower.pm (+15 lines)
Lines 1025-1030 __PACKAGE__->has_many( Link Here
1025
  { cascade_copy => 0, cascade_delete => 0 },
1025
  { cascade_copy => 0, cascade_delete => 0 },
1026
);
1026
);
1027
1027
1028
=head2 illcomments
1029
1030
Type: has_many
1031
1032
Related object: L<Koha::Schema::Result::Illcomment>
1033
1034
=cut
1035
1036
__PACKAGE__->has_many(
1037
  "illcomments",
1038
  "Koha::Schema::Result::Illcomment",
1039
  { "foreign.borrowernumber" => "self.borrowernumber" },
1040
  { cascade_copy => 0, cascade_delete => 0 },
1041
);
1042
1028
=head2 illrequests
1043
=head2 illrequests
1029
1044
1030
Type: has_many
1045
Type: has_many
(-)a/Koha/Schema/Result/Illcomment.pm (+137 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::Illcomment;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::Illcomment
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<illcomments>
19
20
=cut
21
22
__PACKAGE__->table("illcomments");
23
24
=head1 ACCESSORS
25
26
=head2 illcomment_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 illrequest_id
33
34
  data_type: 'bigint'
35
  extra: {unsigned => 1}
36
  is_foreign_key: 1
37
  is_nullable: 0
38
39
=head2 borrowernumber
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 1
44
45
=head2 comment
46
47
  data_type: 'text'
48
  is_nullable: 1
49
50
=head2 timestamp
51
52
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "illcomment_id",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "illrequest_id",
63
  {
64
    data_type => "bigint",
65
    extra => { unsigned => 1 },
66
    is_foreign_key => 1,
67
    is_nullable => 0,
68
  },
69
  "borrowernumber",
70
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71
  "comment",
72
  { data_type => "text", is_nullable => 1 },
73
  "timestamp",
74
  {
75
    data_type => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
78
    is_nullable => 0,
79
  },
80
);
81
82
=head1 PRIMARY KEY
83
84
=over 4
85
86
=item * L</illcomment_id>
87
88
=back
89
90
=cut
91
92
__PACKAGE__->set_primary_key("illcomment_id");
93
94
=head1 RELATIONS
95
96
=head2 borrowernumber
97
98
Type: belongs_to
99
100
Related object: L<Koha::Schema::Result::Borrower>
101
102
=cut
103
104
__PACKAGE__->belongs_to(
105
  "borrowernumber",
106
  "Koha::Schema::Result::Borrower",
107
  { borrowernumber => "borrowernumber" },
108
  {
109
    is_deferrable => 1,
110
    join_type     => "LEFT",
111
    on_delete     => "CASCADE",
112
    on_update     => "CASCADE",
113
  },
114
);
115
116
=head2 illrequest
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::Illrequest>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "illrequest",
126
  "Koha::Schema::Result::Illrequest",
127
  { illrequest_id => "illrequest_id" },
128
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-11-11 13:57:28
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jlDjszfw2Q5k5FDnDD9FQg
134
135
136
# You can replace this text with custom code or comments, and it will be preserved on regeneration
137
1;
(-)a/Koha/Schema/Result/Illrequest.pm (-3 / +17 lines)
Lines 215-220 __PACKAGE__->belongs_to( Link Here
215
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
215
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
216
);
216
);
217
217
218
=head2 illcomments
219
220
Type: has_many
221
222
Related object: L<Koha::Schema::Result::Illcomment>
223
224
=cut
225
226
__PACKAGE__->has_many(
227
  "illcomments",
228
  "Koha::Schema::Result::Illcomment",
229
  { "foreign.illrequest_id" => "self.illrequest_id" },
230
  { cascade_copy => 0, cascade_delete => 0 },
231
);
232
218
=head2 illrequestattributes
233
=head2 illrequestattributes
219
234
220
Type: has_many
235
Type: has_many
Lines 231-238 __PACKAGE__->has_many( Link Here
231
);
246
);
232
247
233
248
234
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
249
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-11-11 13:57:28
235
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rh8DSs3xj3KRmyd7WNGDAg
250
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rzJewf8BoBn9LieLzOa12w
236
251
237
252
238
# You can replace this text with custom code or comments, and it will be preserved on regeneration
253
# You can replace this text with custom code or comments, and it will be preserved on regeneration
239
- 

Return to bug 18591