in reply to Re^2: Catalyst: model & context object usage
in thread Catalyst: model & context object usage
Your sub list is exactly the same as it is in the tutorial. After looking over the tutorial and thinking about the error, it looks like the id field for the author is not being passed to the object. There are a few reasons this could happen.
# Add a record to the join table for this book, mapping to # appropriate author $book->add_to_book_authors({author_id => $author_id}); # Note: Above is a shortcut for this: # $book->create_related('book_authors', {author_id => $author_id}); # Assign the Book object to the stash for display in the view $c->stash->{book} = $book;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Catalyst: model & context object usage
by marscld (Beadle) on Aug 11, 2008 at 07:37 UTC | |
by actualize (Monk) on Aug 11, 2008 at 16:12 UTC | |
by marscld (Beadle) on Aug 12, 2008 at 01:30 UTC | |
by actualize (Monk) on Aug 12, 2008 at 02:22 UTC | |
by marscld (Beadle) on Aug 12, 2008 at 05:42 UTC | |
|