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

(-)a/Koha/Schema/Result/Biblio.pm (-27 / +2 lines)
Lines 197-217 __PACKAGE__->has_many( Link Here
197
  { cascade_copy => 0, cascade_delete => 0 },
197
  { cascade_copy => 0, cascade_delete => 0 },
198
);
198
);
199
199
200
=head2 oai_sets_biblios
201
202
Type: has_many
203
204
Related object: L<Koha::Schema::Result::OaiSetsBiblio>
205
206
=cut
207
208
__PACKAGE__->has_many(
209
  "oai_sets_biblios",
210
  "Koha::Schema::Result::OaiSetsBiblio",
211
  { "foreign.biblionumber" => "self.biblionumber" },
212
  { cascade_copy => 0, cascade_delete => 0 },
213
);
214
215
=head2 old_reserves
200
=head2 old_reserves
216
201
217
Type: has_many
202
Type: has_many
Lines 317-334 __PACKAGE__->has_many( Link Here
317
  { cascade_copy => 0, cascade_delete => 0 },
302
  { cascade_copy => 0, cascade_delete => 0 },
318
);
303
);
319
304
320
=head2 sets
321
322
Type: many_to_many
323
324
Composing rels: L</oai_sets_biblios> -> set
325
326
=cut
327
328
__PACKAGE__->many_to_many("sets", "oai_sets_biblios", "set");
329
330
305
331
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
306
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22
332
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0//8OGf7OteNnwT03g4QsA
307
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vh7DAGajJCEzHE7YmAG3jg
333
308
334
1;
309
1;
(-)a/Koha/Schema/Result/OaiSet.pm (-12 / +2 lines)
Lines 125-143 __PACKAGE__->has_many( Link Here
125
  { cascade_copy => 0, cascade_delete => 0 },
125
  { cascade_copy => 0, cascade_delete => 0 },
126
);
126
);
127
127
128
=head2 biblionumbers
129
128
130
Type: many_to_many
129
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22
131
130
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ju63fVMgLPbeFxeZJsQHRQ
132
Composing rels: L</oai_sets_biblios> -> biblionumber
133
134
=cut
135
136
__PACKAGE__->many_to_many("biblionumbers", "oai_sets_biblios", "biblionumber");
137
138
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3M30E7wFbGbesAfQYyalTw
141
131
142
132
143
# You can replace this text with custom content, and it will be preserved on regeneration
133
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OaiSetsBiblio.pm (-20 / +3 lines)
Lines 26-32 __PACKAGE__->table("oai_sets_biblios"); Link Here
26
=head2 biblionumber
26
=head2 biblionumber
27
27
28
  data_type: 'integer'
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 0
29
  is_nullable: 0
31
30
32
=head2 set_id
31
=head2 set_id
Lines 39-45 __PACKAGE__->table("oai_sets_biblios"); Link Here
39
38
40
__PACKAGE__->add_columns(
39
__PACKAGE__->add_columns(
41
  "biblionumber",
40
  "biblionumber",
42
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41
  { data_type => "integer", is_nullable => 0 },
43
  "set_id",
42
  "set_id",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
44
);
Lines 60-80 __PACKAGE__->set_primary_key("biblionumber", "set_id"); Link Here
60
59
61
=head1 RELATIONS
60
=head1 RELATIONS
62
61
63
=head2 biblionumber
64
65
Type: belongs_to
66
67
Related object: L<Koha::Schema::Result::Biblio>
68
69
=cut
70
71
__PACKAGE__->belongs_to(
72
  "biblionumber",
73
  "Koha::Schema::Result::Biblio",
74
  { biblionumber => "biblionumber" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76
);
77
78
=head2 set
62
=head2 set
79
63
80
Type: belongs_to
64
Type: belongs_to
Lines 91-98 __PACKAGE__->belongs_to( Link Here
91
);
75
);
92
76
93
77
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
78
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zl0mhAt8isigZay80Ie6jA
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oGVUyyyune8FVOj504xizw
96
80
97
81
98
# You can replace this text with custom content, and it will be preserved on regeneration
82
# You can replace this text with custom content, and it will be preserved on regeneration
99
- 

Return to bug 3206