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". It

Are 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'
}
});