Allow extending EntityManager and use create method

If you create your own entityManager by extending this one, you can't use ::create method because
it will create an instance of the last one and not our new entityManager