Let's say I have a User model. Would I put methods on the model itself, or as a template so I can access it from the user table object?
In other words, which is more preferable:
$u=new User();
$u->register($username, $password, $email);
or
$userTable = Doctrine::getTable('User');
$userTable->register($username, $password, $email);
My instinct would be the second one, since it logically makes more sense, but what about things like password changing, logging in, etc? Should I really put those on the User model while I keep things like register on the user table object?