Hello,

We recently encountered an issue recently when it was decided that we
did not want to have to specify default values in our model classes
and would prefer to have the default values from the table's
definition be used in many of these cases. We discovered that, while
the record was being inserted into the database correctly, the
instance being returned is showing nil for the relevant properties.

I've discovered that if I call reload on the instance, I have all the
properties, but it seems a bit redundant to have to do that for every
created record (that we are going to use right then)

We've considered using a hook to reload the record, but we wanted to
see if anyone had a better idea.

Daniel E. Renfer

-- 
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