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

(-)a/Koha/Schema/Result/Branchtransfer.pm (-17 / +31 lines)
Lines 1-17 Link Here
1
use utf8;
1
package Koha::Schema::Result::Branchtransfer;
2
package Koha::Schema::Result::Branchtransfer;
2
3
3
# Created by DBIx::Class::Schema::Loader
4
# Created by DBIx::Class::Schema::Loader
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6
7
=head1 NAME
8
9
Koha::Schema::Result::Branchtransfer
10
11
=cut
12
6
use strict;
13
use strict;
7
use warnings;
14
use warnings;
8
15
9
use base 'DBIx::Class::Core';
16
use base 'DBIx::Class::Core';
10
17
11
18
=head1 TABLE: C<branchtransfers>
12
=head1 NAME
13
14
Koha::Schema::Result::Branchtransfer
15
19
16
=cut
20
=cut
17
21
Lines 108-113 __PACKAGE__->add_columns( Link Here
108
  "comments",
112
  "comments",
109
  { data_type => "mediumtext", is_nullable => 1 },
113
  { data_type => "mediumtext", is_nullable => 1 },
110
);
114
);
115
116
=head1 PRIMARY KEY
117
118
=over 4
119
120
=item * L</branchtransfer_id>
121
122
=back
123
124
=cut
125
111
__PACKAGE__->set_primary_key("branchtransfer_id");
126
__PACKAGE__->set_primary_key("branchtransfer_id");
112
127
113
=head1 RELATIONS
128
=head1 RELATIONS
Lines 127-165 __PACKAGE__->belongs_to( Link Here
127
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
142
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
128
);
143
);
129
144
130
=head2 tobranch
145
=head2 itemnumber
131
146
132
Type: belongs_to
147
Type: belongs_to
133
148
134
Related object: L<Koha::Schema::Result::Branch>
149
Related object: L<Koha::Schema::Result::Item>
135
150
136
=cut
151
=cut
137
152
138
__PACKAGE__->belongs_to(
153
__PACKAGE__->belongs_to(
139
  "tobranch",
154
  "itemnumber",
140
  "Koha::Schema::Result::Branch",
155
  "Koha::Schema::Result::Item",
141
  { branchcode => "tobranch" },
156
  { itemnumber => "itemnumber" },
142
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
157
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
143
);
158
);
144
159
145
=head2 itemnumber
160
=head2 tobranch
146
161
147
Type: belongs_to
162
Type: belongs_to
148
163
149
Related object: L<Koha::Schema::Result::Item>
164
Related object: L<Koha::Schema::Result::Branch>
150
165
151
=cut
166
=cut
152
167
153
__PACKAGE__->belongs_to(
168
__PACKAGE__->belongs_to(
154
  "itemnumber",
169
  "tobranch",
155
  "Koha::Schema::Result::Item",
170
  "Koha::Schema::Result::Branch",
156
  { itemnumber => "itemnumber" },
171
  { branchcode => "tobranch" },
157
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
172
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
158
);
173
);
159
174
160
175
161
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2015-05-27 18:14:12
176
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-12 13:56:48
162
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IKdPAJHJdYM3MHxnj6Mxzg
177
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h35JNhhGAsTs+20SV6HgtA
163
178
164
179
165
# You can replace this text with custom content, and it will be preserved on regeneration
180
# You can replace this text with custom content, and it will be preserved on regeneration
166
- 

Return to bug 14187