Changed the order of the attributes passed to the ORM::entityManager and changed ORM::makeEntityManager to a static method.