public class HasManyAssociation extends AbstractAssociation
| Constructor and Description |
|---|
HasManyAssociation(Class<?> model)
Creates an instance of a hasMany association.
|
HasManyAssociation(String model)
Creates an instance of a hasMany association.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutoLoad() |
String |
getName() |
void |
setAutoLoad(Boolean autoLoad)
True to automatically load the related store from a remote source when
instantiated.
|
void |
setName(String name)
The name of the function to create on the owner model to retrieve the
child store.
|
createAssociation, getAssociationKey, getForeignKey, getModel, getModelName, getPrimaryKey, getType, setAssociationKey, setForeignKey, setPrimaryKeypublic HasManyAssociation(String model)
AbstractAssociation.model to the
provided parameters.model - The name of the model that is being associated with.public HasManyAssociation(Class<?> model)
AbstractAssociation.model to the
full qualified name of the model class or the string from
Model.value() if present on the class.model - The class of the model that is being associated with.public Boolean getAutoLoad()
public void setAutoLoad(Boolean autoLoad)
Corresponds to the autoLoad config property.
autoLoad - the new value for autoLoadpublic String getName()
public void setName(String name)
Corresponds to the name config property.
name - the new name for the functionCopyright © 2010-2013. All Rights Reserved.