2 package Koha
::Schema
::Result
::AuthorisedValueCategory
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AuthorisedValueCategory
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_value_categories>
22 __PACKAGE__
->table("authorised_value_categories");
29 default_value: (empty string)
35 __PACKAGE__
->add_columns(
37 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 32 },
44 =item * L</category_name>
50 __PACKAGE__
->set_primary_key("category_name");
54 =head2 authorised_values
58 Related object: L<Koha::Schema::Result::AuthorisedValue>
62 __PACKAGE__
->has_many(
64 "Koha::Schema::Result::AuthorisedValue",
65 { "foreign.category" => "self.category_name" },
66 { cascade_copy
=> 0, cascade_delete
=> 0 },
69 =head2 items_search_fields
73 Related object: L<Koha::Schema::Result::ItemsSearchField>
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
88 Related object: L<Koha::Schema::Result::MarcSubfieldStructure>
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
103 sub koha_objects_class
{
104 'Koha::AuthorisedValueCategories';