 	'
 		<!--- Sets the `new` property to `1` on the most recently released product --->
 		<cfset result = model("product").updateOne(order="releaseDate DESC", new=1)>
-	'
-	categories="model-class" chapters="updating-records" functions="update,updateAll,updateByKey">
+
+		<!--- If you have a `hasOne` association setup from `user` to `profile` you can do a scoped call (the `removeProfile` method below will call `model("profile").updateOne(where="userId=##aUser.id##", userId="")` internally) --->
+		<cfset aUser = model("user").findByKey(params.userId)>
+		<cfset aUser.removeProfile()>
+	'
+	categories="model-class" chapters="updating-records,associations" functions="hasOne,update,updateAll,updateByKey">
 	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @findAll.">
 	<cfargument name="order" type="string" required="false" default="" hint="See documentation for @findAll.">
 	<cfargument name="properties" type="struct" required="false" default="#StructNew()#" hint="See documentation for @new.">

		<!--- Get a post object and then delete it from the database --->
		<cfset aPost = model("post").findByKey(33)>
		<cfset aPost.delete()>
	'
	categories="model-object" chapters="deleting-records" functions="deleteAll,deleteByKey,deleteOne">
	<cfargument name="parameterize" type="any" required="false" default="#application.wheels.functions.delete.parameterize#" hint="See documentation for @findAll.">
	<cfscript>
		var loc = {};

	'
		<!--- Delete the user that signed up last --->
		<cfset result = model("user").deleteOne(order="signupDate DESC")>

		<!--- If you have a `hasOne` association setup from `user` to `profile` you can do a scoped call (the `deleteProfile` method below will call `model("profile").deleteOne(where="userId=##aUser.id##")` internally) --->
		<cfset aUser = model("user").findByKey(params.userId)>
		<cfset aUser.deleteProfile()>
	'
	categories="model-class" chapters="deleting-records,associations" functions="delete,deleteAll,deleteOne,hasOne">
	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @findAll.">
	<cfargument name="order" type="string" required="false" default="" hint="See documentation for @findAll.">
	<cfscript>
