bugfix user search + refactor doctrine entity