Given the following classclass Postinclude DataMapper::Resourceproperty :id, Serial, :field => 'post_id', :key => trueproperty :thread_id, Integerproperty :username, Stringproperty :post_date, Integerproperty :message, Textendexecuting 'Post.get(1)' produces the following sqlSELECT `post_id`, `id`, `username`, `date`, `id`, `id` FROM `xf_post` WHERE `post_id` = 1 LIMIT 1I've also tried changing the :id property name to all forms of insanity, but DataMapper keeps tacking the `id` column in the queries.Is there a configuration somewhere to turn off assuming an id column? I'm mapping over a legacy database.--
You received this message because you are subscribed to the Google Groups "DataMapper" group.
To view this discussion on the web visit https://groups.google.com/d/msg/datamapper/-/456dN_dlh9wJ.
To post to this group, send email to datam...@googlegroups.com.
To unsubscribe from this group, send email to datamapper+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
SELECT `post_id`, `id`, `username`, `date`, `id`, `id` FROM `xf_post` WHERE `post_id` = 1 LIMIT 1
property :id, Integer, :field => 'post_id', :key => true