Say I've got two simple entities: User and Review. How bad is it if User calls the Review repository? What is the "clean" way for the User to get its Reviews?
class User
{
public function getReviews()
{
return reviewRepository.findByUser(this);
}
}
I did have a look at this question, but although they say this is a bad practice, I didn't find an answer there.