If I put database queries in a class that is representing a real world object, does that violate the design rule that entities must not have access to data sources?
Here is an example
class User
{
public function register
{
}
private function save_user_data()
{
// database queries here, either in AR or ORM
}
}