Save data to a model by passing an array.