I am looking for a clean solution to create multiple database records from a single form, that all have the same values specified in the form. Only the ID should obviously be different.
I need this function to let the user create 100+ records at once as a kind of templating.
So ideally in the form the user can type a number for the count of records she/he would like to create with the filled in values.
Use an iterator. Example:
This example expects two parameters,
:objectwhich contains resource attributes, and:countwhich specifies how many records to create.You need a custom
showview to handle getting and displaying all of the newly created records.