X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/app/nested-loading/app/model/Book.js diff --git a/examples/app/nested-loading/app/model/Book.js b/examples/app/nested-loading/app/model/Book.js new file mode 100644 index 00000000..59bcc9dd --- /dev/null +++ b/examples/app/nested-loading/app/model/Book.js @@ -0,0 +1,18 @@ +/** + * Model for a book + */ +Ext.define('Books.model.Book', { + extend: 'Ext.data.Model', + requires: ['Books.model.Review', 'Ext.data.HasManyAssociation', 'Ext.data.BelongsToAssociation'], + + fields: [ + 'id', + 'name', + 'author', + 'detail', + 'price', + 'image' + ], + + hasMany: {model: 'Books.model.Review', name: 'reviews'} +});