1 package Blog
::RDBO
::Page
;
5 use base
qw(Blog::DB::Object::I18N::Static);
7 __PACKAGE__
->meta->setup(
11 qw
/ id key orig_lang /,
12 rank
=> { default => 0 },
13 addtime
=> { type
=> 'epoch', default => 'now' },
14 modtime
=> { type
=> 'epoch', default => 'now'}
17 primary_key_columns
=> [ qw
/ id / ],
19 unique_key
=> [ qw
/ key / ],
23 type
=> 'one to many',
24 class => 'Blog::RDBO::PageI18N',
25 column_map
=> { id
=> 'page_id' }
30 __PACKAGE__
->utf8_columns( qw
/ key / );
32 __PACKAGE__
->meta->column( 'modtime' )->add_trigger(
36 my $value = $self->modtime;
38 $self->modtime( time );
49 This library is free software, you can redistribute it and/or modify
50 it under the same terms as Perl itself.