Guest User

Untitled

a guest
May 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. McAdmin.Item = SC.Record.extend(
  2. /** @scope McAdmin.Item.prototype */ {
  3.  
  4. // TODO: Add your own code here.
  5. href: SC.Record.attr(String),
  6. name: SC.Record.attr(String),
  7. guid: SC.Record.attr(String),
  8. mimetype: SC.Record.attr(String),
  9. version: SC.Record.attr(Number),
  10. properties: SC.Record.attr(Array),
  11. relationships: SC.Record.attr(Array),
  12. primaryKey: "href",
  13.  
  14.  
  15. children: SC.Record.toMany('McAdmin.Item', {inverse: "parent", isMaster: YES }),
  16. parent: SC.Record.toOne('McAdmin.Item', {inverse: "children", isMaster: NO })
  17. });
Add Comment
Please, Sign In to add comment