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

}

/**
* 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);
				}
			}
		}

}

/**
 * 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);
			}
		}
	}
