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

cascade inserting? #12

Closed
cagdasolgun opened this issue Apr 25, 2013 · 2 comments
Closed

cascade inserting? #12

cagdasolgun opened this issue Apr 25, 2013 · 2 comments

Comments

@cagdasolgun
Copy link

Resources with has_many relationships which derived from Spira::Base do cascade inserting?

@cordawyn
Copy link
Member

Do you mean mass creation of resources, where Spira::Base#create takes an array of hashes like ActiveRecord::Base#create? No, Spira cannot do that.

@cagdasolgun
Copy link
Author

I created a hook to perform this action. Checks if relation type is objecttype and trigger save action for each related objects. Thanks for answer.

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

No branches or pull requests

2 participants