BaseEntityclass, which provides methods to work with the entity. Example of how to work with such entity:
BaseEntityhas most of the methods of the standard
Repository. Most of the time you don't need to use
EntityManagerwith active record entities.
Data Mapperapproach helps with maintainability, which is more effective in bigger apps. The
Active Recordapproach helps keep things simple which works well in smaller apps. And simplicity is always a key to better maintainability.