1 package Blog
::RDBO
::Comment
;
5 use base
qw(Blog::DB::Object);
7 use Rose
::DB
::Object
::Helpers
'column_value_pairs';
9 __PACKAGE__
->meta->setup(
22 addtime
=> { type
=> 'epoch', default => 'now' }
25 primary_key_columns
=> [ 'id' ],
29 type
=> 'many to one',
30 class => 'Blog::RDBO::Post',
31 key_columns
=> { post_id
=> 'id' }
36 __PACKAGE__
->utf8_columns( qw
/ name content / );
41 $self->{ comment_count
} = $_[0] if @_;
43 return $self->{ comment_count
};
52 This library is free software, you can redistribute it and/or modify
53 it under the same terms as Perl itself.