New Posts New Posts RSS Feed: mutiple entity manager - merging changes back
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

mutiple entity manager - merging changes back

 Post Reply Post Reply
Author
hueha View Drop Down
Newbie
Newbie


Joined: 23-Jul-2010
Posts: 38
Post Options Post Options   Quote hueha Quote  Post ReplyReply Direct Link To This Post Topic: mutiple entity manager - merging changes back
    Posted: 11-Sep-2010 at 9:07am
I am having trouble merging my changes in one entity manager back into the main entity manager.

I create the new entity manager and pass it items from the main entity manager using the method "ImportEntities".  I defined a span that included all the objects I'm interested in.  That works fine but the problem I am having is how do I merge those changes back into the main entity manager?  When I try the same thing in reverse ImportEntities is throwing an error "This method only works with entities from this entity manager"

What is the proper way to merge the changes back into the main entity manager?

Hue
Back to Top
hueha View Drop Down
Newbie
Newbie


Joined: 23-Jul-2010
Posts: 38
Post Options Post Options   Quote hueha Quote  Post ReplyReply Direct Link To This Post Posted: 11-Sep-2010 at 9:36am
oh nevermind.  Found the problem.  I was still using objects from the main entity manager and saving them to the new entity manager.  After I retrieved the objects from the new entity it worked fine.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down