Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving trees of objects - should save objects that have the foreign keys after the related object #40

Open
jeff2001 opened this issue Nov 14, 2013 · 0 comments
Labels

Comments

@jeff2001
Copy link
Contributor

Redmine Issue #1721

When you're saving a tree of objects, it's currently add related objects on to the end of the transaction. This poses a problem if the object you're saving has a foreign key to the related object. In this case you have to manually save the related object before you save this object, which is not always correct (eg. 1 to 1 composition relationships). Instead the transaction committer should realise it needs to save the related object first instead of last.

Updated by Peter Wiles over 2 years ago
Some work done in rev 18257. Still to write some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant