package YV::Table::ArticleAuthor; use base 'YV::Table::DBI'; __PACKAGE__->table('article_authors'); __PACKAGE__->columns(All => qw/author_id article_id/); __PACKAGE__->hasa(YV::Table::Author => 'author_id'); __PACKAGE__->hasa(YV::Table::Article => 'article_id'); # other methods