lib/model.js
function Model(name, table) {
    this.model = this;

    if(!name || typeof name !== "string"){
        throw new Error("Attempting to instantiate a model without a valid name. Create models using the Cassanova.model API.");
    }

    if(!table){
        throw new Error("Attempting to instantiate a model, " + name + ", without a valid table. Create models using the Cassanova.model API.");
    }

    this.name = name;
    this.table = table;
}
function Model(name, table) {
    this.model = this;

    if(!name || typeof name !== "string"){
        throw new Error("Attempting to instantiate a model without a valid name. Create models using the Cassanova.model API.");
    }

    if(!table){
        throw new Error("Attempting to instantiate a model, " + name + ", without a valid table. Create models using the Cassanova.model API.");
    }

    this.name = name;
    this.table = table;
}
function Model ( name , table ) { this . model = this ; if ( ! name || typeof name !== "string" ) { throw new Error ( "Attempting to instantiate a model without a valid name. Create models using the Cassanova.model API." ) ; } if ( ! table ) { throw new Error ( "Attempting to instantiate a model, " + name + ", without a valid table. Create models using the Cassanova.model API." ) ; } this . name = name ; this . table = table ; }
Cassanova.Model
@param {String} name       The name of the model. Used to creation and retrieve.
@param {Table} table     The table associated with the model.
Cassanova . Model