 					loc.where = loc.where & "'";
 			}
 		}
-		
+
 		// try to fetch existing object from the database
 		loc.existingObject = findOne(where=loc.where, reload=true);
 

<cffunction name="$validateUniquenessOf" returntype="void" access="public" output="false" hint="Adds an error if the object property fail to pass the validation setup in the @validatesUniquenessOf method.">
	<cfscript>
		var loc = {};
		
		// create the WHERE clause to be used in the query that checks if an identical value already exists
		// wrap value in single quotes unless it's numeric
		// example: "userName='Joe'"

			<!--- Register the `check` method below to be called to validate existing objects before they are updated --->
			<cfset validateOnUpdate("check")>
		</cffunction>

		<cffunction name="check">
		</cffunction>
	'
