set the primaryKey attribute on an instantiated collection