PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/ext-4.1.0_b3/docs/extjs/examples/app/nested-loading/app/model/Book.js

https://bitbucket.org/srogerf/javascript
JavaScript | 18 lines | 13 code | 2 blank | 3 comment | 0 complexity | 9194d3a2e6ca7f2cbe3dba0d1327ff2b MD5 | raw file
 1/**
 2 * Model for a book
 3 */
 4Ext.define('Books.model.Book', {
 5    extend: 'Ext.data.Model',
 6    requires: ['Books.model.Review', 'Ext.data.association.HasMany', 'Ext.data.association.BelongsTo'],
 7
 8    fields: [
 9        'id',
10        'name',
11        'author',
12        'detail',
13        'price',
14        'image'
15    ],
16
17    hasMany: {model: 'Books.model.Review', name: 'reviews'}
18});