Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / app / nested-loading / app / model / Book.js
1 /**
2  * Model for a book
3  */
4 Ext.define('Books.model.Book', {
5     extend: 'Ext.data.Model',
6     requires: ['Books.model.Review', 'Ext.data.HasManyAssociation', 'Ext.data.BelongsToAssociation'],
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 });