Doctrine Entity Manager injection working