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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +27 lines)
Lines 995-1003 __PACKAGE__->has_many( Link Here
995
  { cascade_copy => 0, cascade_delete => 0 },
995
  { cascade_copy => 0, cascade_delete => 0 },
996
);
996
);
997
997
998
=head2 z3950servers_branches
998
999
999
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
1000
Type: has_many
1000
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A
1001
1002
Related object: L<Koha::Schema::Result::Z3950serversBranch>
1003
1004
=cut
1005
1006
__PACKAGE__->has_many(
1007
  "z3950servers_branches",
1008
  "Koha::Schema::Result::Z3950serversBranch",
1009
  { "foreign.branchcode" => "self.branchcode" },
1010
  { cascade_copy => 0, cascade_delete => 0 },
1011
);
1012
1013
=head2 servers
1014
1015
Type: many_to_many
1016
1017
Composing rels: L</z3950servers_branches> -> server
1018
1019
=cut
1020
1021
__PACKAGE__->many_to_many("servers", "z3950servers_branches", "server");
1022
1023
1024
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 12:31:04
1025
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WlEKR3BBlg0PpvIsrrDYyw
1001
1026
1002
__PACKAGE__->has_many(
1027
__PACKAGE__->has_many(
1003
    "additional_field_values",
1028
    "additional_field_values",
(-)a/Koha/Schema/Result/Z3950server.pm (-2 / +29 lines)
Lines 225-233 __PACKAGE__->add_columns( Link Here
225
225
226
__PACKAGE__->set_primary_key("id");
226
__PACKAGE__->set_primary_key("id");
227
227
228
=head1 RELATIONS
228
229
229
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 11:30:07
230
=head2 z3950servers_branches
230
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1uIZOogM1tV2M7fbpPRDwg
231
232
Type: has_many
233
234
Related object: L<Koha::Schema::Result::Z3950serversBranch>
235
236
=cut
237
238
__PACKAGE__->has_many(
239
  "z3950servers_branches",
240
  "Koha::Schema::Result::Z3950serversBranch",
241
  { "foreign.server_id" => "self.id" },
242
  { cascade_copy => 0, cascade_delete => 0 },
243
);
244
245
=head2 branchcodes
246
247
Type: many_to_many
248
249
Composing rels: L</z3950servers_branches> -> branchcode
250
251
=cut
252
253
__PACKAGE__->many_to_many("branchcodes", "z3950servers_branches", "branchcode");
254
255
256
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 12:31:04
257
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b195xK/KC8O/bkoMaSSeFw
231
258
232
=head2 koha_object_class
259
=head2 koha_object_class
233
260
(-)a/Koha/Schema/Result/Z3950serversBranch.pm (-1 / +104 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::Z3950serversBranch;
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::Z3950serversBranch
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<z3950servers_branches>
19
20
=cut
21
22
__PACKAGE__->table("z3950servers_branches");
23
24
=head1 ACCESSORS
25
26
=head2 server_id
27
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
32
z3950server id
33
34
=head2 branchcode
35
36
  data_type: 'varchar'
37
  is_foreign_key: 1
38
  is_nullable: 0
39
  size: 10
40
41
branch code
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "server_id",
47
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48
  "branchcode",
49
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
50
);
51
52
=head1 PRIMARY KEY
53
54
=over 4
55
56
=item * L</server_id>
57
58
=item * L</branchcode>
59
60
=back
61
62
=cut
63
64
__PACKAGE__->set_primary_key("server_id", "branchcode");
65
66
=head1 RELATIONS
67
68
=head2 branchcode
69
70
Type: belongs_to
71
72
Related object: L<Koha::Schema::Result::Branch>
73
74
=cut
75
76
__PACKAGE__->belongs_to(
77
  "branchcode",
78
  "Koha::Schema::Result::Branch",
79
  { branchcode => "branchcode" },
80
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81
);
82
83
=head2 server
84
85
Type: belongs_to
86
87
Related object: L<Koha::Schema::Result::Z3950server>
88
89
=cut
90
91
__PACKAGE__->belongs_to(
92
  "server",
93
  "Koha::Schema::Result::Z3950server",
94
  { id => "server_id" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 12:31:04
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cmUYig/uXaULWQQXqDFGrg
101
102
103
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
1;

Return to bug 40481