Clear Up
SharpKit Reference

HasMany Class

Namespace: Ext.data.association

Base Types

System.Object

Constructors

Name Description
HasMany()
HasMany(HasManyConfig)
HasMany(object) @cfg {String} type The type configuration can be used when creating associations using a configuration object. Use 'hasMany' to create a HasMany association
  
associations: [{
type: 'hasMany',
model: 'User'
}]
            

Properties

Name Description
alias
alternateClassName
extend

Methods

Name Description
createStore() @private Creates a function that returns an Ext.data.Store which is configured to load a set of data filtered by the owner model's primary key - e.g. in a hasMany association where Group hasMany Users, this function returns a Store configured to return the filtered set of a single Group's Users. @return {Function} The store-generating function
read(Model, Reader, object) Read associated data @private @param {Ext.data.Model} record The record we're writing to @param {Ext.data.reader.Reader} reader The reader for the associated model @param {Object} associationData The raw associated data
© Copyright 2005-2011 SharpKit. All rights reserved.