package Bookmarks::M::DB::Links; use strict; for my $col_name (qw(add_date last_access_date)) { __PACKAGE__->has_a( $col_name => 'DateTime', inflate => sub { DateTime->from_epoch( epoch => $_ ) }, deflate => 'epoch', ); } __PACKAGE__->has_many( tags => [Bookmarks::M::DB::LinkTags => 'tag'] ); =head1 NAME Bookmarks::M::DB::Links - CDBI Model Component Table Class =head1 SYNOPSIS Very simple to use =head1 DESCRIPTION Very nice component. =head1 AUTHOR Clever guy =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1;