[4.1b1] Bug with Implicit Model / Store / MixedCollection / Proxy

[4.1b1] Bug with Implicit Model / Store / MixedCollection / Proxy

REQUIRED INFORMATIONExt version tested:

Ext 4.1 rev B1

Ext 4.0.7

Browser versions tested against:

Chrome 16

DOCTYPE tested against:

Transitional

Description:

In 1 store the getKey function applied to the data's MixedCollection object is returning an id of 1 no matter what the actual id is. This in turn is causing MixedCollection's add method to overwrite the models and the result is only the last model is added to the data collection.

During the loop in addAll in the AbstractMixedCollection class it calls add, in the 'add' method I put the following console.log in

It works for me as well, I couldn't reproduce it in proper test case either which is why I didn't include one. It seems to be some sort of race condition... The actual application that these stores are in it quite significant in size.
I'm wondering if somewhere down the line some references to objects are being munged up.
Out of the 70+ stores we currently have and the 50+ screens this is the only occurrence of it I have found, Like I said simply dropping in 4.07 instead of 4.1 fixes this issue. I have spent a couple days now narrowing it down to that area of the code, however the definition and implementation of that store is so simple I cannot for the life of me figure out why its not working. If you want I can provide you access to my development box to have a closer look... Or perhaps you can suggest something else I can try?

Unfortunately I get the same result. I forgot to mention that the 3 records do exist in the proxies rawData property as well as the grids row numberer is acknowledging there are 3 records because the row that is displayed shows a value of 3. Its just that the getKey method returns the same id every time which clobbers all the previous records.