2 package Koha
::Schema
::Result
::Matchpoint
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Matchpoint
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<matchpoints>
22 __PACKAGE__
->table("matchpoints");
41 default_value: (empty string)
53 __PACKAGE__
->add_columns(
55 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
57 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
59 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 30 },
61 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
68 =item * L</matchpoint_id>
74 __PACKAGE__
->set_primary_key("matchpoint_id");
78 =head2 matchchecks_source_matchpoints
82 Related object: L<Koha::Schema::Result::Matchcheck>
86 __PACKAGE__
->has_many(
87 "matchchecks_source_matchpoints",
88 "Koha::Schema::Result::Matchcheck",
89 { "foreign.source_matchpoint_id" => "self.matchpoint_id" },
90 { cascade_copy
=> 0, cascade_delete
=> 0 },
93 =head2 matchchecks_target_matchpoints
97 Related object: L<Koha::Schema::Result::Matchcheck>
101 __PACKAGE__
->has_many(
102 "matchchecks_target_matchpoints",
103 "Koha::Schema::Result::Matchcheck",
104 { "foreign.target_matchpoint_id" => "self.matchpoint_id" },
105 { cascade_copy
=> 0, cascade_delete
=> 0 },
112 Related object: L<Koha::Schema::Result::MarcMatcher>
116 __PACKAGE__
->belongs_to(
118 "Koha::Schema::Result::MarcMatcher",
119 { matcher_id
=> "matcher_id" },
120 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
123 =head2 matcher_matchpoints
127 Related object: L<Koha::Schema::Result::MatcherMatchpoint>
131 __PACKAGE__
->has_many(
132 "matcher_matchpoints",
133 "Koha::Schema::Result::MatcherMatchpoint",
134 { "foreign.matchpoint_id" => "self.matchpoint_id" },
135 { cascade_copy
=> 0, cascade_delete
=> 0 },
138 =head2 matchpoint_components
142 Related object: L<Koha::Schema::Result::MatchpointComponent>
146 __PACKAGE__
->has_many(
147 "matchpoint_components",
148 "Koha::Schema::Result::MatchpointComponent",
149 { "foreign.matchpoint_id" => "self.matchpoint_id" },
150 { cascade_copy
=> 0, cascade_delete
=> 0 },
154 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
155 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KvZ0QM+OoJ+xaUKdkPGASg
158 # You can replace this text with custom content, and it will be preserved on regeneration