hoping to save some folks a major headache.. took me far too long to isolate
this bug.. haven't delved too much into finding a fix yet, but it probably
gets deep into Query

basically if you have a subclass that adds a property, in the process of an
update in the parent, it queries the unloaded subclass property, also
reloading the other properties (a similar thing has happened w/ lazy),
causing your change to disappear before it issues the update.  (and having
an association in a subclass constitutes adding a property)

see my two Lighthouse tickets from today for more info and repro scripts..
http://datamapper.lighthouseapp.com/projects/20609/tickets/767-child-property-creeps-into-parent-query-sti#ticket-767-1
http://datamapper.lighthouseapp.com/projects/20609/tickets/770-dm-validations-sti-causes-updates-to-fail#ticket-770-1

i've had mixed success with adding :auto_validation => false to all new
subclass properties; works in a simple script but not in our merb project.

-gary

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to