Fix the columnName
This commit is contained in:
parent
d0cdbd84ea
commit
1ae9478496
|
@ -1190,7 +1190,7 @@ DataSource.prototype.tableName = function (modelName) {
|
||||||
* @returns {String} columnName
|
* @returns {String} columnName
|
||||||
*/
|
*/
|
||||||
DataSource.prototype.columnName = function (modelName, propertyName) {
|
DataSource.prototype.columnName = function (modelName, propertyName) {
|
||||||
return this.definitions[modelName].columnName(this.connector.name);
|
return this.definitions[modelName].columnName(this.connector.name, propertyName);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -171,7 +171,7 @@ ModelBaseClass.defineProperty = function (prop, params) {
|
||||||
};
|
};
|
||||||
|
|
||||||
ModelBaseClass.getPropertyType = function (propName) {
|
ModelBaseClass.getPropertyType = function (propName) {
|
||||||
var prop = this.properties[propName];
|
var prop = this.definition.properties[propName];
|
||||||
if(!prop) {
|
if(!prop) {
|
||||||
// The property is not part of the definition
|
// The property is not part of the definition
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue