Shopify/batman — Issue #218: Non-numeric model id should be possible
Author: roastedamoeba
Created: 2011-11-08 17:44:13+00:00
State: open

There's already a post on the mailing list about this: https://groups.google.com/d/topic/batmanjs/-2RTruB5m_w/discussion

Because the Model.id set-accessor calls `parseInt` on the supplied ID, it's not compatible with non-numeric IDs (in my case, coming from MongoDB).

If Batman really does need to use numeric IDs, then it needs to have some way of mapping from these internal IDs to server-supplied IDs. But ideally, Batman itself would support non-numeric IDs.