 	<cfargument name="name" type="string" required="true">
 	<cfargument name="path" type="string" required="true">
 	<cfscript>
-		var loc = {};
 		variables.wheels = {};
 		variables.wheels.errors = [];
 		variables.wheels.class = {};

		}

		// add calculated properties
		for (loc.key in variables.wheels.class.mapping) {
			if (StructKeyExists(variables.wheels.class.mapping[loc.key], "type") && variables.wheels.class.mapping[loc.key].type != "column") {
				variables.wheels.class.calculatedPropertyList = ListAppend(variables.wheels.class.calculatedPropertyList, loc.key);
				variables.wheels.class.calculatedProperties[loc.key] = {};
				variables.wheels.class.calculatedProperties[loc.key][variables.wheels.class.mapping[loc.key].type] = variables.wheels.class.mapping[loc.key].value;
				variables.wheels.class.calculatedProperties[loc.key].select = variables.wheels.class.mapping[loc.key].select;
				variables.wheels.class.calculatedProperties[loc.key].dataType = variables.wheels.class.mapping[loc.key].dataType;
			}
		}


		variables.wheels.class.automaticValidations = application.wheels.automaticValidations;
		setTableNamePrefix(get("tableNamePrefix"));
		table(LCase(pluralize(variables.wheels.class.modelName)));
		local.callbacks = "afterNew,afterFind,afterInitialization,beforeDelete,afterDelete,beforeSave,afterSave,beforeCreate,afterCreate,beforeUpdate,afterUpdate,beforeValidation,afterValidation,beforeValidationOnCreate,afterValidationOnCreate,beforeValidationOnUpdate,afterValidationOnUpdate";
		local.iEnd = ListLen(local.callbacks);
		for (local.i=1; local.i <= local.iEnd; local.i++) {
			variables.wheels.class.callbacks[ListGetAt(local.callbacks, local.i)] = ArrayNew(1);
		}
		local.validations = "onSave,onCreate,onUpdate";
		local.iEnd = ListLen(local.validations);
		for (local.i=1; local.i <= local.iEnd; local.i++) {
			variables.wheels.class.validations[ListGetAt(local.validations, local.i)] = ArrayNew(1);
		}

		variables.wheels.class.propertyList = "";
