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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 541-546 __PACKAGE__->has_many( Link Here
541
  { cascade_copy => 0, cascade_delete => 0 },
541
  { cascade_copy => 0, cascade_delete => 0 },
542
);
542
);
543
543
544
=head2 itemtypes_branches
545
546
Type: has_many
547
548
Related object: L<Koha::Schema::Result::ItemtypesBranch>
549
550
=cut
551
552
__PACKAGE__->has_many(
553
  "itemtypes_branches",
554
  "Koha::Schema::Result::ItemtypesBranch",
555
  { "foreign.branchcode" => "self.branchcode" },
556
  { cascade_copy => 0, cascade_delete => 0 },
557
);
558
544
=head2 library_groups
559
=head2 library_groups
545
560
546
Type: has_many
561
Type: has_many
Lines 647-654 __PACKAGE__->has_many( Link Here
647
);
662
);
648
663
649
664
650
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-29 15:02:52
665
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-07-04 04:56:47
651
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y+tNq5YiUeUOyAwB4r6GHw
666
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:15/s0/8d2cNB9YLLlsEY4w
652
667
653
__PACKAGE__->add_columns(
668
__PACKAGE__->add_columns(
654
    '+pickup_location' => { is_boolean => 1 }
669
    '+pickup_location' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/Itemtype.pm (-2 / +17 lines)
Lines 181-186 __PACKAGE__->has_many( Link Here
181
  { cascade_copy => 0, cascade_delete => 0 },
181
  { cascade_copy => 0, cascade_delete => 0 },
182
);
182
);
183
183
184
=head2 itemtypes_branches
185
186
Type: has_many
187
188
Related object: L<Koha::Schema::Result::ItemtypesBranch>
189
190
=cut
191
192
__PACKAGE__->has_many(
193
  "itemtypes_branches",
194
  "Koha::Schema::Result::ItemtypesBranch",
195
  { "foreign.itemtype" => "self.itemtype" },
196
  { cascade_copy => 0, cascade_delete => 0 },
197
);
198
184
=head2 old_reserves
199
=head2 old_reserves
185
200
186
Type: has_many
201
Type: has_many
Lines 212-219 __PACKAGE__->has_many( Link Here
212
);
227
);
213
228
214
229
215
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-29 15:02:52
230
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-07-04 04:56:48
216
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X7Py35p8kotheBvJjuwDcA
231
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qo6jabJSQGeYJ542ebSJfg
217
232
218
# Use the ItemtypeLocalization view to create the join on localization
233
# Use the ItemtypeLocalization view to create the join on localization
219
our $LANGUAGE;
234
our $LANGUAGE;
(-)a/Koha/Schema/Result/ItemtypesBranch.pm (-1 / +87 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::ItemtypesBranch;
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::ItemtypesBranch
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<itemtypes_branches>
19
20
=cut
21
22
__PACKAGE__->table("itemtypes_branches");
23
24
=head1 ACCESSORS
25
26
=head2 itemtype
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 branchcode
34
35
  data_type: 'varchar'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
  size: 10
39
40
=cut
41
42
__PACKAGE__->add_columns(
43
  "itemtype",
44
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
45
  "branchcode",
46
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
47
);
48
49
=head1 RELATIONS
50
51
=head2 branchcode
52
53
Type: belongs_to
54
55
Related object: L<Koha::Schema::Result::Branch>
56
57
=cut
58
59
__PACKAGE__->belongs_to(
60
  "branchcode",
61
  "Koha::Schema::Result::Branch",
62
  { branchcode => "branchcode" },
63
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
64
);
65
66
=head2 itemtype
67
68
Type: belongs_to
69
70
Related object: L<Koha::Schema::Result::Itemtype>
71
72
=cut
73
74
__PACKAGE__->belongs_to(
75
  "itemtype",
76
  "Koha::Schema::Result::Itemtype",
77
  { itemtype => "itemtype" },
78
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
79
);
80
81
82
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-07-04 04:56:48
83
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cBTswjKV8VWN1iueB+PygQ
84
85
86
# You can replace this text with custom code or comments, and it will be preserved on regeneration
87
1;

Return to bug 15497