5 use base
qw(DB::Object);
7 use Rose
::Object
::MakeMethods
::Generic
( scalar => [ qw
/ pic pic_count / ] );
9 use Common
::RDBO
::Helper
::Post
qw(:all);
11 __PACKAGE__
->meta->setup(
15 qw
/ id title content /,
16 addtime
=> { type
=> 'epoch' }
19 primary_key_columns
=> [ qw
/ id / ],
23 type
=> 'many to many',
24 map_class
=> 'PostTagMap',
29 type
=> 'one to many',
30 class => 'PostTagMap',
33 type
=> 'one to many',
35 column_map
=> { id
=> 'master_id' },
36 query_args
=> [ type
=> 'post' ]
39 type
=> 'one to many',
41 column_map
=> { id
=> 'master_id' },
42 query_args
=> [ type
=> 'post' ]
53 This library is free software, you can redistribute it and/or modify
54 it under the same terms as Perl itself.