1 package Blog
::RDBO
::Comment
;
5 use base
qw(Blog::DB::Object);
7 __PACKAGE__
->meta->setup(
20 addtime
=> { type
=> 'epoch', default => 'now' }
23 primary_key_columns
=> [ 'id' ],
27 type
=> 'many to one',
28 class => 'Blog::RDBO::Post',
29 key_columns
=> { post_id
=> 'id' }
34 __PACKAGE__
->utf8_columns( qw
/ name content / );
39 $self->{ comment_count
} = $_[0] if @_;
41 return $self->{ comment_count
};
50 This library is free software, you can redistribute it and/or modify
51 it under the same terms as Perl itself.