moved Repository.php to EntityManager.php

renamed DI repository to em
updated code