Thank you for reporting this bug. We will make it our priority to review this report.
Create model with rest proxy, problem dealing with id.
Create model with rest proxy, problem dealing with id.
Hello,
I have problem creating a new record :
Code:
var record = Ext.create('ContentType', {name: "test"});
record.save();
The server get a POST operation, with "id" sent with value "ContentType-1". It reject this, as "id" has wrong value.Code:
var record = Ext.create('ContentType', {id: 0, name: "test"});
record.save();
The server get a PATCH operation with url "/contenttypes/0", as the record is not set as "phantom: true". ItAre the two process invalid or is it a bug ?
Here is my model definition :
Code:
Ext.define('ContentType', {
extend: 'Ext.data.Model',
fields: [
{ name: 'name', type: 'string' }
],
proxy: {
type: 'rest',
url: '/contenttypes'
}
});
vendredi 11 avril 2014
Create model with rest proxy, problem dealing with id.
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire