Bug 7295: (follow-up) update DBIx::Class schema classes
[koha.git] / Koha / Schema / Result / CategoriesBranch.pm
1 use utf8;
2 package Koha::Schema::Result::CategoriesBranch;
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::CategoriesBranch
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<categories_branches>
19
20 =cut
21
22 __PACKAGE__->table("categories_branches");
23
24 =head1 ACCESSORS
25
26 =head2 categorycode
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 1
31   size: 10
32
33 =head2 branchcode
34
35   data_type: 'varchar'
36   is_foreign_key: 1
37   is_nullable: 1
38   size: 10
39
40 =cut
41
42 __PACKAGE__->add_columns(
43   "categorycode",
44   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
45   "branchcode",
46   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, 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   {
64     is_deferrable => 1,
65     join_type     => "LEFT",
66     on_delete     => "CASCADE",
67     on_update     => "CASCADE",
68   },
69 );
70
71 =head2 categorycode
72
73 Type: belongs_to
74
75 Related object: L<Koha::Schema::Result::Category>
76
77 =cut
78
79 __PACKAGE__->belongs_to(
80   "categorycode",
81   "Koha::Schema::Result::Category",
82   { categorycode => "categorycode" },
83   {
84     is_deferrable => 1,
85     join_type     => "LEFT",
86     on_delete     => "CASCADE",
87     on_update     => "CASCADE",
88   },
89 );
90
91
92 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9fXKFDUQsOx+uqF+slRhSw
94
95
96 # You can replace this text with custom content, and it will be preserved on regeneration
97 1;