Hi.
Lets i have two classes: Posts and Comments mapping the Posts and Comments tables from the database.
I want to get all coments from a specific post.
Should I make post->getAllComments() or comments->getByPostID(postid).
I have one class representing each table and one class represent each row of that table.
What do you think is the best way?





Bookmarks