I have an application where my model data has the idProperty set to '_id' as per server mongodb data. If I try to load a model instance by given id I get this strange error: Cannot call method 'hasId' of undefined
My model is defined as follows:
Ext.define 'heroico.model.Visitor',
extend: 'Ext.data.Model'
fields: [...]
idProperty: '_id'
proxy:
type: 'memory'
And I'm just hitting heroico.model.Visitor.load('FcFaNkhH9TJzQ57D5')
in my chrome console where FcFaNkhH9TJzQ57D5
is an actual id present in the store. Any ideas?
Extjs version 4.2.1