On 22 Jul 2008, at 10:28, Michael Koziarski wrote:

>
>> Ta-da! post.comments.first.title reverts to its old value (because
>> it's now a different object - the first item of the freshly loaded
>> collection as opposed to just the result of find :first).
>> This behaviour is rather unintuitive to me (and I would have thought
>> conducive to hard to track down bugs) - Thoughts?
>
> There are a bunch of other corner cases which present themselves when
> you start digging in, and  a bunch of error cases to account for when
> fixing them.  Putting an identity map in there would solve some of
> those problems, but involve a lot of work and handling some additional
> errors like StaleObject and AlreadyAttachedObject and all that jazz.
>
identity map ?

Fred
> If someone wanted to play around with it in a git branch then we'd
> have a better idea about the work involved, for now it's just a vague
> sense of foreboding.
>
> --  
> Cheers
>
> Koz
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to