//qb.addRelation(entry.getValue(), attachRelationFields(phpClass));
for(DoctrineModelField field: EntityHelper.getModelFields(phpClass)) {
qb.addPropertyAlias(entry.getValue() + "." + field.getName(), new QueryBuilderPropertyAlias(entry.getValue(), field.getName(), field));
if(field.getRelation() != null && field.getRelationType() != null) {
relationList.add(new QueryBuilderRelation(field.getName(), field.getRelation()));
}
}
qb.addRelation(entry.getValue(), relationList);
}