diff --git a/lib/connector.js b/lib/connector.js index 54d4227..3eb6c79 100644 --- a/lib/connector.js +++ b/lib/connector.js @@ -104,10 +104,7 @@ Connector.prototype.idNames = function (model) { */ Connector.prototype.id = function (model, prop) { var p = this._models[model].properties[prop]; - if (!p) { - console.trace('Property not found: ' + model + '.' + prop); - } - return p.id; + return p && p.id; }; /**