Store Data Temporarily Before Saving Into Database
Posted 24 August 2014 - 11:09 AM
Posted 24 August 2014 - 10:01 PM
One of following solutions may help to solve your problem.
01. Maintaining a temporary table to store temporary data.
You will be able to create a separate table to maintain the temporary data, Once the editing done, simply move the data into live table.
02. Use a combination of session && transaction
(Set the session manually , Set the model object into the session, reuse the session + object , Commit once the process done,)
03. Maintaining a status in the database.
Maintain 2 status in the database - (1 => Live 2 => On Processing)
Sri Nuwan Perera
Posted 25 August 2014 - 05:46 AM
One thing that I was thinking of is using CGridView + CArrayDataProvider for the details. Once, save button is pressed, then the CArrayDataProvider will be stored in database. But I am not yet trying it