php - Simulate saving propel object (Don't write into tables) -


i have functionality in project in have show preview user how page after submitting form. preview, setting related propel object form values , in end not saving values preview.

this works, previous values of related table deleted , after preview related tables not restored previous state not saving object. please, bug? don't want save of values table, use object show preview.

is there proper way of doing this.

edit: rephrase question. if don't save propel object, changes affected in tables?. right now, if don't save, main table unaffected relations affected , not restored old values if object not saved.

eg: have 2 tables, job , jobsectors foreign key relationship. $job->addjobsector('somesector');

i don't save object, previous value in jobsector deleted , there no new value.

thanks

i resolved it. whenever functions starting inittablename() used, seems previous values getting deleted. don't call these functions preview. , not saving object not store data database.

thanks


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -