Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / TagsIndex.pm
blobacc98067ad05d7b994e9d99fb95af585a42eef66
1 use utf8;
2 package Koha::Schema::Result::TagsIndex;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::TagsIndex
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<tags_index>
20 =cut
22 __PACKAGE__->table("tags_index");
24 =head1 ACCESSORS
26 =head2 term
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 0
31 size: 191
33 =head2 biblionumber
35 data_type: 'integer'
36 is_foreign_key: 1
37 is_nullable: 0
39 =head2 weight
41 data_type: 'integer'
42 default_value: 1
43 is_nullable: 0
45 =cut
47 __PACKAGE__->add_columns(
48 "term",
49 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 191 },
50 "biblionumber",
51 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52 "weight",
53 { data_type => "integer", default_value => 1, is_nullable => 0 },
56 =head1 PRIMARY KEY
58 =over 4
60 =item * L</term>
62 =item * L</biblionumber>
64 =back
66 =cut
68 __PACKAGE__->set_primary_key("term", "biblionumber");
70 =head1 RELATIONS
72 =head2 biblionumber
74 Type: belongs_to
76 Related object: L<Koha::Schema::Result::Biblio>
78 =cut
80 __PACKAGE__->belongs_to(
81 "biblionumber",
82 "Koha::Schema::Result::Biblio",
83 { biblionumber => "biblionumber" },
84 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
87 =head2 term
89 Type: belongs_to
91 Related object: L<Koha::Schema::Result::TagsApproval>
93 =cut
95 __PACKAGE__->belongs_to(
96 "term",
97 "Koha::Schema::Result::TagsApproval",
98 { term => "term" },
99 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-01-18 08:31:57
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ewTrnc9D1jcoyf65+MrSGQ
106 sub koha_object_class {
107 'Koha::Tags::Index';
109 sub koha_objects_class {
110 'Koha::Tags::Indexes';