2 package Koha
::Schema
::Result
::Branchcategory
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Branchcategory
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<branchcategories>
22 __PACKAGE__
->table("branchcategories");
29 default_value: (empty string)
39 =head2 codedescription
41 data_type: 'mediumtext'
50 =head2 show_in_pulldown
58 __PACKAGE__
->add_columns(
60 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
62 { data_type
=> "varchar", is_nullable
=> 1, size
=> 32 },
64 { data_type
=> "mediumtext", is_nullable
=> 1 },
66 { data_type
=> "varchar", is_nullable
=> 1, size
=> 16 },
68 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
75 =item * L</categorycode>
81 __PACKAGE__
->set_primary_key("categorycode");
85 =head2 branchrelations
89 Related object: L<Koha::Schema::Result::Branchrelation>
93 __PACKAGE__
->has_many(
95 "Koha::Schema::Result::Branchrelation",
96 { "foreign.categorycode" => "self.categorycode" },
97 { cascade_copy
=> 0, cascade_delete
=> 0 },
104 Composing rels: L</branchrelations> -> branchcode
108 __PACKAGE__
->many_to_many("branchcodes", "branchrelations", "branchcode");
111 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HU5N7lAiLIz6yC9va3fDbg
115 # You can replace this text with custom content, and it will be preserved on regeneration