Hi,
i am wondering about the following behaviour.
I have a model : "GroupModel" and a Model "DateModel" and a group could have many dates, and the data was received from ajax / json proxies.
So i have in the "GroupModel" the following association:
Code:
hasMany: {
model: 'efa.model.fa2.DateModel',
name: 'dates',
autoLoad: true,
reader: {
type: 'json',
root: 'data',
successProperty: 'success',
messageProperty: 'message'
}
}
Now im using this, and data is load correctly, but the "special store" doesnt hold that data...
so this doesnt work:
Code:
var groupDateStore = groupRecord.dates();
groupDateStore.load();
No data is in the store.
But when i call this:
Code:
var groupDateStore = groupRecord.dates();
groupDateStore.load(function(records, operation, success) {
groupDateStore.add(records);
});
then everything is working fine, but in my humble opinion, this is not the behaviour, as it should be, isnt it?
Thanks and best regards,
Thomas Mang