createdData
Data callback that updates the cache when a new data record is created.
connection.createdData(responseData, requestData, cid)
Calls createData on the cacheConnection to add a newly created data record to the cache.
Calls and returns the response from any underlying behavior's createdData callback.
Parameters
- responseData
{Object}:the data returned by the data creation request
- requestData
{Object}:the data that was passed to the data creation request
- cid
{Number}:the unique identifier for this data. Used before data has a id added at creation time.
Returns
{Object}:
the data returned from an underlying behavior's createdData callback, if one exists. Otherwise
returns the responseData.