 }
 
 /**
-* Internal Function
-*/
+ * Internal function.
+ */
 public boolean function $validateAssociations(required boolean callbacks) {
-	local._associations = variables.wheels.class.associations;
-	for (local._association in local._associations) {
-		if (local._associations[local._association].nested.allow && local._associations[local._association].nested.autoSave && StructKeyExists(this, local._association)) {
-			local._array = this[local._association];
-			if (IsObject(this[local._association])) {
-				local._array = [this[local._association]];
-			}
-			if (IsArray(local._array)) {
-				for (local._i=1; local._i <= ArrayLen(local._array); local._i++) {
-					$invoke(componentReference=local._array[local._i], method="valid", invokeArgs=arguments);
+	local.associations = variables.wheels.class.associations;
+	for (local.association in local.associations) {
+		if (local.associations[local.association].nested.allow && local.associations[local.association].nested.autoSave && StructKeyExists(this, local.association)) {
+			local.array = this[local.association];
+			if (IsObject(this[local.association])) {
+				local.array = [this[local.association]];
+			}
+			if (IsArray(local.array)) {
+				for (local.i = 1; local.i <= ArrayLen(local.array); local.i++) {
+					$invoke(componentReference=local.array[local.i], method="valid", invokeArgs=arguments);
 				}
 			}
 		}

}

/**
* Internal Function
*/
public boolean function $setAssociations() {
	local._associations = variables.wheels.class.associations;
	for (local._item in local._associations) {
		local._association = local._associations[local._item];
		if (local._association.nested.allow && local._association.nested.autoSave && StructKeyExists(this, local._item)) {
			if (ListFindNoCase("belongsTo,hasOne", local._association.type) && IsStruct(this[local._item])) {
				$setOneToOneAssociationProperty(property=local._item, value=this[local._item], association=local._association, delete=true);
			} else if (local._association.type == "hasMany" && IsArray(this[local._item]) && ArrayLen(this[local._item])) {
				$setCollectionAssociationProperty(property=local._item, value=this[local._item], association=local._association, delete=true);
			}
		}
	}

}

/**
 * Internal function.
 */
public void function $setOneToOneAssociationProperty(
	required string property,
	required struct value,
