I have model which having many relationship with other table
<cfcomponent extends="Model">
<cffunction name="init">
<cfset table("products")>
<cfset hasOne(name="productInventory") />
<cfset hasmany(name="productDescriptions",dependent="deleteAll") />
<cfset hasmany(name="productPrices",dependent="deleteAll") />
<cfset nestedProperties(associations="productDescriptions,productPrices,productInventory",allowDelete=true)>
</cffunction>
</cfcomponent>
It's giving me an error on this update statement
Problem occured may because of structure created by cfwheels for object. as we look into to params.product dump having different id for many relation and in cfwheels object there is different id . may that why its creating problem of nested properties.
<cfset variables.product = model("product").findOne(include="productDescriptions,productPrices,productInventory", includeSoftDeletes="true", where="products.id=#params.product.id#") />
<cfset updateResult = product.update(params.product) />
Screen shot of error message: