Is there a way to show in a Grid that takes it data from CActiveDataProvider some new rows that are not actually yet into the database?
here's my scenario..
I have to fill by X times (the quantity of a product in a bill) and provide to each row the possibility to be edited and saved
Product QTY
product1 3
|
____ Edit item 1 (not yet in the db)
____ Edit item 2 (not yet in the db)
____ Edit item 3 (not yet in the db)
So it's kind of like a master detail grid (That I've sorted it out how to do it..) but I can't display things on a grid that arren't yet in the database..
I know I have to create an array of temporary models like $model[]=new MODEL(); and push the somehow to the CActiveDataProvider but don't know the syntaxis...