Here are some steps you could consider (without code, of course), but they'll
give you starting info.
1. Modify book entity to have author property and get/setAuthor method, as
well
BookEntity
--
id
name
author_id
author -- this is new
---
get/setAuthor() --- this is new
Remember that
Yeah but it could be a helper method that wraps the call to getAuthor in order
to return author name.
Marco Pivetta ocram...@gmail.com wrote:
That's conceptually wrong. You first get the author, then his name. You
don't call `getAuthorName` on a book.
Marco Pivetta
http://twitter.com/Ocramius
Yes, but it's not on your book :)
You would have such a helper somewhere else, where you can access the
functionality required to fetch the Author entity
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 7 April 2013 04:42, Dan.latter dan.lat...@gmail.com wrote:
Yeah