I'm very confused in this problem. For example, I have a "user" database table. What I've been taught in my university about MVC is:
I must have a User model object which contain properties, setters and getters only. And a UserMapper (an other class, not in User model class) object which gets content from database and create an instance of User object then return it.
But some tutorials on Internet, and some of my co-worker do like this:
Return rows from database right in User model object.
So, what is the right way to do this?