Thanks for reply Frederick, What I wrote is really obscure, so let me
explain:
replacing the name ‘graph’ with farmer, imagine a situation where in
the
database there is a record that I retrieve with :
farmer = Farmer.find(2)
Well, this farmer has many cows associated, and these cows are loaded
on
the collection named ‘cows’, an Array with Cow objects; then suppose to
change the value of attribute ‘name’, of one of these objects of the
collection, perhaps the second cow:
farmer.cows[1].name = “another_name”
and then suppose to update all with :
farmer.save
In other ORM frameworks this results in updating the ‘dirty’ object of
the
collection but not in Active Record, why?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.