You can also do: property :province_name_short, String, field: "province"
belongs_to :province Since :name_short is the key on Province, the mapping should work, as it will look for :province_name_short in Municipality. Il giorno 24/feb/2013, alle ore 16:07, kristian <m.krist...@web.de> ha scritto: > just add the key to the model > > belongs_to :province, 'Province', key: true > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to datamapper@googlegroups.com. > Visit this group at http://groups.google.com/group/datamapper?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to datamapper@googlegroups.com. Visit this group at http://groups.google.com/group/datamapper?hl=en. For more options, visit https://groups.google.com/groups/opt_out.