ExtJS 4.1 - Returning Associated Data in Model.Save() Response

前端 未结 4 1151
广开言路
广开言路 2021-01-04 08:09

I am curious as to why the record contained in the result set of a Model.save() response does not properly return updated associated data, despite the updated d

4条回答
  •  悲&欢浪女
    2021-01-04 09:01

    If your ID field has a value then ExtJS will always call update. If you do not write any value to your id field or set it to null, it should call create. I guess you are trying to call save with an existing record so it will always call update. This is a desired behavior.

提交回复
热议问题