Changes between Initial Version and Version 1 of Ticket #17557, comment 7


Ignore:
Timestamp:
Nov 26, 2013, 4:07:15 PM (6 years ago)
Author:
Colin Snover
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17557, comment 7

    initial v1  
    1 It depends on whether or not you also set `idProperty` to 0. If you are setting the `idProperty` of the store then it will be fine. The only way what you are suggesting would fail would be if you did not set `idProperty` but did set `identifier` in the return data. Of course, a more robust `'identifier' in data` or `data.identifier != null` check could be used instead, if it’s worth it to do so.
     1It depends on whether or not you also set `idProperty` to 0. If you are setting the `idProperty` of the store then it will be fine. The only way what you are suggesting would fail would be if you did not set `idProperty` but did set `identifier` to 0 in the return data. Of course, a more robust `'identifier' in data` or `data.identifier != null` check could be used instead, if it’s worth it to do so.