Possible to store array in DS.attr('number')?


#1

Is it possible to store an array of integers in a model attribute, for example, with the ‘number’ type? I can’t set a hasMany relationship with objects that have integers defined, so if storing multiple values in an attribute isn’t possible, is there a way to define a custom, array attribute type?


#2

is there a way to define a custom, array attribute type?

Indeed there is. The documentation isn’t very long, but you should get the gist of it.