lib/persisted-model.js
/*!
 * Throw an error telling the user that the method is not available and why.
 */
Throw an error telling the user that the method is not available and why.
Throw an error telling the user that the method is not available and why .
function throwNotAttached(modelName, methodName) {
  throw new Error(
    'Cannot call ' + modelName + '.' + methodName + '().' +
    ' The ' + methodName + ' method has not been setup.' +
    ' The PersistedModel has not been correctly attached to a DataSource!'
  );
}
function throwNotAttached ( modelName , methodName ) { throw new Error ( 'Cannot call ' + modelName + '.' + methodName + '().' + ' The ' + methodName + ' method has not been setup.' + ' The PersistedModel has not been correctly attached to a DataSource!' ) ; }
Throw an error telling the user that the method is not available and why.
Throw an error telling the user that the method is not available and why .