set $em to protected add refactored getQueryBuilder method to overwrite creation of the QueryBuilder