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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 316-321 __PACKAGE__->has_many( Link Here
316
  { cascade_copy => 0, cascade_delete => 0 },
316
  { cascade_copy => 0, cascade_delete => 0 },
317
);
317
);
318
318
319
=head2 branches_overdrive
320
321
Type: might_have
322
323
Related object: L<Koha::Schema::Result::BranchesOverdrive>
324
325
=cut
326
327
__PACKAGE__->might_have(
328
  "branches_overdrive",
329
  "Koha::Schema::Result::BranchesOverdrive",
330
  { "foreign.branchcode" => "self.branchcode" },
331
  { cascade_copy => 0, cascade_delete => 0 },
332
);
333
319
=head2 branchtransfers_frombranches
334
=head2 branchtransfers_frombranches
320
335
321
Type: has_many
336
Type: has_many
Lines 617-624 __PACKAGE__->has_many( Link Here
617
);
632
);
618
633
619
634
620
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-06 16:28:49
635
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-02 00:27:54
621
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N0tdcSAb4bMht/i0chipYQ
636
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YPE+MSmyDELhFFKq+SpA5w
622
637
623
638
624
# You can replace this text with custom code or comments, and it will be preserved on regeneration
639
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BranchesOverdrive.pm (-1 / +83 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::BranchesOverdrive;
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::BranchesOverdrive
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<branches_overdrive>
19
20
=cut
21
22
__PACKAGE__->table("branches_overdrive");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 authname
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 255
38
39
=cut
40
41
__PACKAGE__->add_columns(
42
  "branchcode",
43
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
44
  "authname",
45
  { data_type => "varchar", is_nullable => 0, size => 255 },
46
);
47
48
=head1 PRIMARY KEY
49
50
=over 4
51
52
=item * L</branchcode>
53
54
=back
55
56
=cut
57
58
__PACKAGE__->set_primary_key("branchcode");
59
60
=head1 RELATIONS
61
62
=head2 branchcode
63
64
Type: belongs_to
65
66
Related object: L<Koha::Schema::Result::Branch>
67
68
=cut
69
70
__PACKAGE__->belongs_to(
71
  "branchcode",
72
  "Koha::Schema::Result::Branch",
73
  { branchcode => "branchcode" },
74
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
);
76
77
78
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-02 00:27:54
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qD6areyrFCh4KdAbUPDBEw
80
81
82
# You can replace this text with custom code or comments, and it will be preserved on regeneration
83
1;

Return to bug 21082