Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / AuthorisedValueCategory.pm
blob7778ec25dcc3be8140a68e537a93d771032141ad
1 use utf8;
2 package Koha::Schema::Result::AuthorisedValueCategory;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthorisedValueCategory
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_value_categories>
20 =cut
22 __PACKAGE__->table("authorised_value_categories");
24 =head1 ACCESSORS
26 =head2 category_name
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 32
33 =cut
35 __PACKAGE__->add_columns(
36 "category_name",
37 { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
40 =head1 PRIMARY KEY
42 =over 4
44 =item * L</category_name>
46 =back
48 =cut
50 __PACKAGE__->set_primary_key("category_name");
52 =head1 RELATIONS
54 =head2 authorised_values
56 Type: has_many
58 Related object: L<Koha::Schema::Result::AuthorisedValue>
60 =cut
62 __PACKAGE__->has_many(
63 "authorised_values",
64 "Koha::Schema::Result::AuthorisedValue",
65 { "foreign.category" => "self.category_name" },
66 { cascade_copy => 0, cascade_delete => 0 },
69 =head2 items_search_fields
71 Type: has_many
73 Related object: L<Koha::Schema::Result::ItemsSearchField>
75 =cut
77 __PACKAGE__->has_many(
78 "items_search_fields",
79 "Koha::Schema::Result::ItemsSearchField",
80 { "foreign.authorised_values_category" => "self.category_name" },
81 { cascade_copy => 0, cascade_delete => 0 },
84 =head2 marc_subfield_structures
86 Type: has_many
88 Related object: L<Koha::Schema::Result::MarcSubfieldStructure>
90 =cut
92 __PACKAGE__->has_many(
93 "marc_subfield_structures",
94 "Koha::Schema::Result::MarcSubfieldStructure",
95 { "foreign.authorised_value" => "self.category_name" },
96 { cascade_copy => 0, cascade_delete => 0 },
100 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:59:31
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6vToj9pUcIv8Jio38rNE4g
104 # You can replace this text with custom code or comments, and it will be preserved on regeneration