What if you created a new instance of the object and just copied the data to it with the exception of the primary key.  It may not be pretty, but it may solve your problem.


Brad


On Oct 12, 2006, at 5:05 PM, Joshua Scott wrote:

All,

I have a content management system using reactor and modelglue. I am working on version two and one of the features is a revision system allowing people to save drafts of content.

What I need to be able to do is save a PageContent content object and force an insert instead of an update. I thought I could do this by forcing the pkey to 0, but that does not work.

How would I go about this?

Thanks for the help in advance.

Josh
------------------------------------------------
Joshua Scott
Resonant Media Technologies, LLC.
www.resonantmedia.com | blog.resonantmedia.com

 

"It is impossible to get out of a problem by using the same type of thinking that it took to get into the problem." -- Albert Einstein

 


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to