I don't know if it's necessary to register entities as a service. I think this would be just fine as `return new EmailMapper($app['db'], new EmailEntity);`

Unless there's a particular reason to register an entity, I would prefer not to, just to avoid polluting the DI container.