Change collection attributes with array.