2 package Koha
::Schema
::Result
::SearchMarcToField
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SearchMarcToField
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<search_marc_to_field>
22 __PACKAGE__
->table("search_marc_to_field");
32 =head2 search_marc_map_id
38 =head2 search_field_id
50 true if a facet field should be generated for this
58 true if this field can be used to generate suggestions for browse
65 true/false creates special sort handling, null doesn't
69 __PACKAGE__
->add_columns(
71 { data_type
=> "tinyint", default_value
=> 1, is_nullable
=> 0 },
73 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
75 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
77 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 1 },
79 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 1 },
81 { data_type
=> "tinyint", is_nullable
=> 1 },
88 =item * L</search_marc_map_id>
90 =item * L</search_field_id>
96 __PACKAGE__
->set_primary_key("search_marc_map_id", "search_field_id");
104 Related object: L<Koha::Schema::Result::SearchField>
108 __PACKAGE__
->belongs_to(
110 "Koha::Schema::Result::SearchField",
111 { id
=> "search_field_id" },
112 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
115 =head2 search_marc_map
119 Related object: L<Koha::Schema::Result::SearchMarcMap>
123 __PACKAGE__
->belongs_to(
125 "Koha::Schema::Result::SearchMarcMap",
126 { id
=> "search_marc_map_id" },
127 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
131 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-02 12:47:22
132 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9mqZ/zrii+Fv+k+eQNHYUw
135 # You can replace this text with custom code or comments, and it will be preserved on regeneration