Code Smell 142 - Queries in Constructors
TL;DR: Constructors should construct (and probably initialize) objects.
Problems
Coupling
Side Effects
Solutions
Decouple essential business logic from accidental persistence
On persistence classes, run queries in functions other than construc...
maximilianocontieri.com2 min read