Thanks for your reply! I now realize that the relation mappers are mappings going “out” (db to entity) and changeset mappers are going “in” (entity to db) as described here (ROM - Core Concepts). What I’m really trying to articulate is… Is it possible for a changeset commit to return an application domain entity rather than a hash or array (Class: ROM::Changeset — Documentation by YARD 0.9.24)?
Changesets use relation’s mapper. So, if you do users.map_with(:foo).changeset(:create, ...).commit it should use the entity mapper when reading data back.
So the both the CreateSomeChangeset mapping and the add_timestamps map appear to be working. The map_with appears to be ignored as the return value is not reflecting changes in some_mapper.
@solnic Is this on the roadmap anywhere for v5, or v6? I am going to be using custom mappers heavily, as I can’t (yet) change my DB schema to map easily to my entities, and am hoping to use ROM to bridge that gap.