Used getManager and not deprecated getEntityManager and fixed phpdoc for run tests