File Coverage

blib/lib/OpusVL/Preferences/Schema/Result/PrfDefaultValues.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package OpusVL::Preferences::Schema::Result::PrfDefaultValues;
2              
3 1     1   1915 use 5.010;
  1         4  
4 1     1   4 use Moose;
  1         3  
  1         6  
5 1     1   5518 use MooseX::NonMoose;
  1         2  
  1         6  
6 1     1   4395 use namespace::autoclean;
  1         2  
  1         9  
7             extends 'DBIx::Class::Core';
8              
9             __PACKAGE__->table('prf_default_values');
10              
11             __PACKAGE__->add_columns(
12             'id' => {
13             data_type => "int",
14             is_auto_increment => 1,
15             is_nullable => 0,
16             },
17             'value' => {
18             data_type => 'text',
19             is_nullable => 1,
20             },
21             'prf_owner_type_id' => {
22             data_type => 'integer',
23             is_nullable => 0,
24             },
25             name => {
26             data_type => "varchar",
27             is_nullable => 0,
28             },
29             display_order =>
30             {
31             data_type => 'int',
32             is_nullable => 0,
33             default_value => 1,
34             },
35             );
36              
37             __PACKAGE__->set_primary_key("id");
38              
39             __PACKAGE__->belongs_to(
40             'field' => 'OpusVL::Preferences::Schema::Result::PrfDefault',
41             {
42             "foreign.name" => "self.name",
43             "foreign.prf_owner_type_id" => "self.prf_owner_type_id",
44             }
45             );
46              
47             __PACKAGE__->meta->make_immutable();
48              
49              
50             1;
51              
52             __END__
53              
54             =pod
55              
56             =encoding UTF-8
57              
58             =head1 NAME
59              
60             OpusVL::Preferences::Schema::Result::PrfDefaultValues
61              
62             =head1 VERSION
63              
64             version 0.27
65              
66             =head1 DESCRIPTION
67              
68             =head1 METHODS
69              
70             =head1 ATTRIBUTES
71              
72             =head2 field
73              
74             =head2 id
75              
76             =head2 value
77              
78             =head2 prf_owner_type_id
79              
80             =head2 name
81              
82             =head1 LICENSE AND COPYRIGHT
83              
84             Copyright 2012 OpusVL.
85              
86             This software is licensed according to the "IP Assignment Schedule" provided with the development project.
87              
88             =head1 AUTHOR
89              
90             OpusVL - www.opusvl.com
91              
92             =head1 COPYRIGHT AND LICENSE
93              
94             This software is copyright (c) 2011 by OpusVL - www.opusvl.com.
95              
96             This is free software; you can redistribute it and/or modify it under
97             the same terms as the Perl 5 programming language system itself.
98              
99             =cut