Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / MatcherMatchpoint.pm
1 package Koha::Schema::Result::MatcherMatchpoint;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::MatcherMatchpoint
15
16 =cut
17
18 __PACKAGE__->table("matcher_matchpoints");
19
20 =head1 ACCESSORS
21
22 =head2 matcher_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 matchpoint_id
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =cut
35
36 __PACKAGE__->add_columns(
37   "matcher_id",
38   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39   "matchpoint_id",
40   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41 );
42
43 =head1 RELATIONS
44
45 =head2 matcher
46
47 Type: belongs_to
48
49 Related object: L<Koha::Schema::Result::MarcMatcher>
50
51 =cut
52
53 __PACKAGE__->belongs_to(
54   "matcher",
55   "Koha::Schema::Result::MarcMatcher",
56   { matcher_id => "matcher_id" },
57   { on_delete => "CASCADE", on_update => "CASCADE" },
58 );
59
60 =head2 matchpoint
61
62 Type: belongs_to
63
64 Related object: L<Koha::Schema::Result::Matchpoint>
65
66 =cut
67
68 __PACKAGE__->belongs_to(
69   "matchpoint",
70   "Koha::Schema::Result::Matchpoint",
71   { matchpoint_id => "matchpoint_id" },
72   { on_delete => "CASCADE", on_update => "CASCADE" },
73 );
74
75
76 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
77 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GBxofoXbX0KRwU1fa5bQ2g
78
79
80 # You can replace this text with custom content, and it will be preserved on regeneration
81 1;