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

(-)a/Koha/Schema/Result/EdifactError.pm (+103 lines)
Line 0 Link Here
1
use utf8;
2
3
package Koha::Schema::Result::EdifactError;
4
5
# Created by DBIx::Class::Schema::Loader
6
# DO NOT MODIFY THE FIRST PART OF THIS FILE
7
8
=head1 NAME
9
10
Koha::Schema::Result::EdifactError
11
12
=cut
13
14
use strict;
15
use warnings;
16
17
use base 'DBIx::Class::Core';
18
19
=head1 TABLE: C<edifact_errors>
20
21
=cut
22
23
__PACKAGE__->table("edifact_errors");
24
25
=head1 ACCESSORS
26
27
=head2 id
28
29
  data_type: 'integer'
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=head2 message_id
34
35
  data_type: 'integer'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
39
=head2 date
40
41
  data_type: 'date'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
44
45
=head2 section
46
47
  data_type: 'mediumtext'
48
  is_nullable: 1
49
50
=head2 details
51
52
  data_type: 'mediumtext'
53
  is_nullable: 1
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
    "id",
59
    { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
    "message_id",
61
    { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62
    "date",
63
    { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
64
    "section",
65
    { data_type => "mediumtext", is_nullable => 1 },
66
    "details",
67
    { data_type => "mediumtext", is_nullable => 1 },
68
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</id>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("id");
81
82
=head1 RELATIONS
83
84
=head2 message
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::EdifactMessage>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
    "message",
94
    "Koha::Schema::Result::EdifactMessage",
95
    { id            => "message_id" },
96
    { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-19 16:24:01
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eDk5vkbGeMthv3oVJUC7yQ
101
102
# You can replace this text with custom code or comments, and it will be preserved on regeneration
103
1;
(-)a/Koha/Schema/Result/EdifactMessage.pm (-4 / +18 lines)
Lines 174-179 __PACKAGE__->belongs_to( Link Here
174
  },
174
  },
175
);
175
);
176
176
177
=head2 edifact_errors
178
179
Type: has_many
180
181
Related object: L<Koha::Schema::Result::EdifactError>
182
183
=cut
184
185
__PACKAGE__->has_many(
186
  "edifact_errors",
187
  "Koha::Schema::Result::EdifactError",
188
  { "foreign.message_id" => "self.id" },
189
  { cascade_copy => 0, cascade_delete => 0 },
190
);
191
177
=head2 vendor
192
=head2 vendor
178
193
179
Type: belongs_to
194
Type: belongs_to
Lines 195-202 __PACKAGE__->belongs_to( Link Here
195
);
210
);
196
211
197
212
198
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
213
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-19 16:24:01
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JHUEsQ+kXjGTRxxc2FFSjQ
214
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bB1E11DztQ9y9UTnEKtQ1Q
200
215
201
__PACKAGE__->add_columns(
216
__PACKAGE__->add_columns(
202
    '+deleted' => { is_boolean => 1 },
217
    '+deleted' => { is_boolean => 1 },
Lines 218-221 sub koha_object_class { Link Here
218
    'Koha::Edifact::File';
233
    'Koha::Edifact::File';
219
}
234
}
220
235
221
1;
236
1;
222
- 

Return to bug 38689