There is no validation in the Parent class. Which means a parent
records must have an id but the name can be nil. Whereas in the child
record, the parent id cannot be nil.
In the Parent class you have to make
property :name, String, :required => true
to achieve what you want
> You received this message because you are subscribed to the Google Groups
> "DataMapper" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datamapper+...@googlegroups.com
> To post to this group, send email to datam...@googlegroups.com
> Visit this group at http://groups.google.com/group/datamapper
> For more options, visit https://groups.google.com/groups/opt_out