lib/MojoMojo/Schema/Result/Entry.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/MojoMojo/Schema/Base/ResultSet.pm ↑ Summary lib/MojoMojo/Schema/Result/Journal.pm »
1 package MojoMojo::Schema::Result::Entry;
2  
3 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 40 ▶use parent qw/MojoMojo::Schema::Base::Result/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 40 __PACKAGE__->load_components( "Core" );
9 40 __PACKAGE__->table("entry");
10 40 __PACKAGE__->add_columns(
11 "id",
12 { data_type => "INTEGER", is_nullable => 0, size => undef, is_auto_increment => 1 },
13 "journal",
14 { data_type => "INTEGER", is_nullable => 0, size => undef },
15 "author",
16 { data_type => "INTEGER", is_nullable => 0, size => undef },
17 "title",
18 { data_type => "VARCHAR", is_nullable => 0, size => 150 },
19 "content",
20 { data_type => "TEXT", is_nullable => 0, size => undef },
21 "posted",
22 { data_type => "VARCHAR", is_nullable => 0, size => 100 },
23 "location",
24 { data_type => "VARCHAR", is_nullable => 0, size => 100 },
25 );
26 40 __PACKAGE__->set_primary_key("id");
27 40 __PACKAGE__->belongs_to( "journal", "MojoMojo::Schema::Result::Journal", { pageid => "journal" } );
28 40 __PACKAGE__->belongs_to( "author", "MojoMojo::Schema::Result::Person", { id => "author" } );
29  
30 =head1 NAME
31  
32 MojoMojo::Schema::Result::Entry - store journal entries
33  
34 =head1 AUTHOR
35  
36 Marcus Ramberg <mramberg@cpan.org>
37  
38 =head1 LICENSE
39  
40 This library is free software. You can redistribute it and/or modify
41 it under the same terms as Perl itself.
42  
43 =cut
44  
45 40 1;
« lib/MojoMojo/Schema/Base/ResultSet.pm ↑ Summary lib/MojoMojo/Schema/Result/Journal.pm »