Add "hasOne" to relationTypes

This commit is contained in:
Ritchie Martori 2014-06-26 14:48:27 -07:00
parent a1d3e72046
commit a3ed1a575e
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ function isModelClass(cls) {
return cls.prototype instanceof ModelBaseClass;
}
DataSource.relationTypes = ['belongsTo', 'hasMany', 'hasAndBelongsToMany'];
DataSource.relationTypes = ['belongsTo', 'hasMany', 'hasAndBelongsToMany', 'hasOne'];
function isModelDataSourceAttached(model) {
return model && (!model.settings.unresolved) && (model.dataSource instanceof DataSource);