I was just looking for some advice, currently my DB design is that one user has many blog posts. Now I have a user class and a blog class.
However, I am not sure of the correct way to get all the blog posts for this user. I create a getAllBlogs () function in a user class that returns blog objects, or I create a main blog class that you can search for from a user, so that would be getAllBlogsForUser ($ id)
Thanks: -)
user188667
source
share