Bug 13069 - (follow-up) Enable sort by title to ignore articles
[koha.git] / Koha / Schema / Result / MarcModificationTemplate.pm
1 use utf8;
2 package Koha::Schema::Result::MarcModificationTemplate;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::MarcModificationTemplate
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<marc_modification_templates>
19
20 =cut
21
22 __PACKAGE__->table("marc_modification_templates");
23
24 =head1 ACCESSORS
25
26 =head2 template_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 name
33
34   data_type: 'text'
35   is_nullable: 0
36
37 =cut
38
39 __PACKAGE__->add_columns(
40   "template_id",
41   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
42   "name",
43   { data_type => "text", is_nullable => 0 },
44 );
45
46 =head1 PRIMARY KEY
47
48 =over 4
49
50 =item * L</template_id>
51
52 =back
53
54 =cut
55
56 __PACKAGE__->set_primary_key("template_id");
57
58 =head1 RELATIONS
59
60 =head2 marc_modification_template_actions
61
62 Type: has_many
63
64 Related object: L<Koha::Schema::Result::MarcModificationTemplateAction>
65
66 =cut
67
68 __PACKAGE__->has_many(
69   "marc_modification_template_actions",
70   "Koha::Schema::Result::MarcModificationTemplateAction",
71   { "foreign.template_id" => "self.template_id" },
72   { cascade_copy => 0, cascade_delete => 0 },
73 );
74
75
76 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 22:03:59
77 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:igqidvfP0AgV5RRBa1huew
78
79
80 # You can replace this text with custom code or comments, and it will be preserved on regeneration
81 1;