1 package Blog
::RDBO
::Comment
;
5 use base
qw(Blog::DB::Object);
7 use Rose
::DB
::Object
::Helpers
'column_value_pairs';
9 use Common
::RDBO
::Helper
::Comment
':all';
11 __PACKAGE__
->meta->setup(
24 addtime
=> { type
=> 'epoch', default => 'now' }
27 primary_key_columns
=> [ 'id' ],
31 type
=> 'many to one',
32 class => 'Blog::RDBO::Post',
33 key_columns
=> { post_id
=> 'id' }
38 __PACKAGE__
->utf8_columns( qw
/ name content / );
46 This library is free software, you can redistribute it and/or modify
47 it under the same terms as Perl itself.