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

(-)a/Koha/Schema/Result/ImportBiblio.pm (-2 / +20 lines)
Lines 95-100 __PACKAGE__->add_columns( Link Here
95
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
95
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
96
);
96
);
97
97
98
=head1 PRIMARY KEY
99
100
=over 4
101
102
=item * L</import_record_id>
103
104
=back
105
106
=cut
107
108
__PACKAGE__->set_primary_key("import_record_id");
109
98
=head1 RELATIONS
110
=head1 RELATIONS
99
111
100
=head2 import_record
112
=head2 import_record
Lines 113-121 __PACKAGE__->belongs_to( Link Here
113
);
125
);
114
126
115
127
116
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-03 09:53:04
128
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-15 12:20:57
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/nOWo4fGjdch+K0T+07cSw
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e7NT/c8Oq2tnYl7ASkD/Vg
118
130
131
sub koha_object_class {
132
    'Koha::Import::Record::Biblio';
133
}
134
sub koha_objects_class {
135
    'Koha::Import::Record::Biblios';
136
}
119
137
120
# You can replace this text with custom content, and it will be preserved on regeneration
138
# You can replace this text with custom content, and it will be preserved on regeneration
121
1;
139
1;
(-)a/Koha/Schema/Result/ImportRecord.pm (-7 / +6 lines)
Lines 216-231 __PACKAGE__->belongs_to( Link Here
216
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
216
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
217
);
217
);
218
218
219
=head2 import_biblios
219
=head2 import_biblio
220
220
221
Type: has_many
221
Type: might_have
222
222
223
Related object: L<Koha::Schema::Result::ImportBiblio>
223
Related object: L<Koha::Schema::Result::ImportBiblio>
224
224
225
=cut
225
=cut
226
226
227
__PACKAGE__->has_many(
227
__PACKAGE__->might_have(
228
  "import_biblios",
228
  "import_biblio",
229
  "Koha::Schema::Result::ImportBiblio",
229
  "Koha::Schema::Result::ImportBiblio",
230
  { "foreign.import_record_id" => "self.import_record_id" },
230
  { "foreign.import_record_id" => "self.import_record_id" },
231
  { cascade_copy => 0, cascade_delete => 0 },
231
  { cascade_copy => 0, cascade_delete => 0 },
Lines 262-269 __PACKAGE__->has_many( Link Here
262
);
262
);
263
263
264
264
265
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-18 10:50:48
265
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-15 12:20:57
266
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqIAQzhgioWtBWU8zFdtjw
266
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PXoyWIwcg9aOQ0223ogwxw
267
267
268
sub koha_object_class {
268
sub koha_object_class {
269
    'Koha::Import::Record';
269
    'Koha::Import::Record';
270
- 

Return to bug 31569