Use both grouped and ungrouped collection to add test set

This commit is contained in:
hns 2009-09-18 08:05:04 +00:00
parent e051184c12
commit f96e053417

View file

@ -13,7 +13,11 @@ function setup() {
var org = new Organisation();
org.name = "Organisation " + i;
org.country = "CH" + i.format("0000");
root.organisations.add(org);
// add to different collections
if (i % 2 == 0)
root.organisations.add(org);
else
root.organisationsByCountry.add(org);
}
res.commit();
}