I would like to update a column named deletedat in my table user on deleting a user

16 views
Skip to first unread message

sz...@coastline.edu

unread,
Apr 26, 2013, 6:38:30 PM4/26/13
to cfwh...@googlegroups.com
I am using the following
<cffunction name="delete">

    <cfset user = model("user").findByKey(params.key)>
    <cfset user.delete()>
    <cfset redirectTo(
        action="index",
       success="User #user.firstname# #user.lastname#  was deleted successfully."
    )>

I would like also to update the column name deletedate to now() on deletion how can I do that.
Thanks

Andy Bellenie

unread,
Apr 26, 2013, 6:48:10 PM4/26/13
to ColdFusion on Wheels
Wheels supports this using a feature called 'soft delete'



--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

sz...@coastline.edu

unread,
Apr 28, 2013, 8:41:15 PM4/28/13
to cfwh...@googlegroups.com
Thank you
Reply all
Reply to author
Forward
0 new messages