2 package Koha
::Schema
::Result
::ClassSource
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClassSource
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<class_sources>
22 __PACKAGE__
->table("class_sources");
29 default_value: (empty string)
35 data_type: 'mediumtext'
44 =head2 class_sort_rule
47 default_value: (empty string)
54 __PACKAGE__
->add_columns(
56 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
58 { data_type
=> "mediumtext", is_nullable
=> 1 },
60 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
63 data_type
=> "varchar",
81 __PACKAGE__
->set_primary_key("cn_source");
85 =head2 class_sort_rule
89 Related object: L<Koha::Schema::Result::ClassSortRule>
93 __PACKAGE__
->belongs_to(
95 "Koha::Schema::Result::ClassSortRule",
96 { class_sort_rule
=> "class_sort_rule" },
97 { is_deferrable
=> 1, on_delete
=> "RESTRICT", on_update
=> "RESTRICT" },
101 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2O58Q7wdbfAl6xmiW02PAA
105 # You can replace this text with custom content, and it will be preserved on regeneration