PDA

View Full Version : [CLOSED] Saving a record obtained from a BufferedStore fails: missing method 'contains'



jorgemanrubia
13 Apr 2014, 6:33 AM
Are you supposed to be able to get a record from a buffered store and invoke save() on it?

With Ext 5.0 it fails. The method `ProxyStore#proxy` invokes `contains` and that method is missing in `BufferedStore`. Is this a bug or the expected behavior?

Fiddle showing that the method is missing (in the docs the method appears: http://docs-origin.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.data.BufferedStore):

https://fiddle.sencha.com/#fiddle/52k

mitchellsimoens
18 Apr 2014, 5:48 AM
Thanks for the report! I have opened a bug in our bug tracker.

dfrederick
6 Jun 2014, 6:56 AM
Hi,
in the 5.0.0 GA code, BufferedStore is still missing an implementation of contains. This can be reprod by calling model.commit() which calls afterCommit, which uses callJoined to invoke afterCommit on the buffered store.