I have a belongs to relationship, the reader/writer is created on
declaration, however, the property is not created at the same time.
So, when I call #first, a property does not exist for me to use. So,
when I have an edit form with a drop-down to assign to
relationship_id, I get an error unless I call the relationship.

Can the associated property be created (#child_key method) when the
reader/writer are created? Or is there another way I should be doing
my edit form? This also breaks any calls to #update which assign to
the property.

Note: if #new is called on the model, #assert_valid calls #child_key
to create the property.
--~--~---------~--~----~------------~-------~--~----~
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