Forum: Ruby on Rails save's implicit transactions when updating?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eea3feaacbe44706164289d068d94828?d=identicon&s=25 Peter Michaux (Guest)
on 2006-03-13 19:54
(Received via mailing list)
Hi,

When saving a new model object that has child objects (corresponding
to a child table), activerecord cleverly does the save as an implicit
transaction and saves the model object and the children objects.

However, after reading the model object from the database and updating
it and it's children, activerecord does not do an implict transaction
when saving the model object. The modified object does get saved but
the modified children do not get saved. Why not? Major pain for my
current application.

Thanks,
Peter
This topic is locked and can not be replied to.