entityManager & documentManager