Auto-generate collection is array of models is passed