Sproutcore RC.Record primary keys, guids and ids
Posted by Veebs on September 26, 2010
1 comment
Every Sproutcore record needs a primary key. By default, the primary key is named guid. You can change the name of your primary key by using the primaryKey attribute. For example, below we’ve changed the name of our primary key to userID. Here’s the catch. If you need to retrieve the value of your primaryKey, [...]