Help for this page

Select Code to Download


  1. or download this
    Package Author;
    Author->has_many('_book_links', 'AuthorBook', 'author');
    sub books { return map { $_->book } shift->_book_links; }
    
  2. or download this
    Package Author;
    Author->has_many('books', [ AuthorBook => 'book' ], 'author');