/wheels/tests/_assets/models/TagWithDataCallbacks.cfc
http://cfwheels.googlecode.com/ · ColdFusion CFScript · 20 lines · 16 code · 4 blank · 0 comment · 0 complexity · 9eb76bf97572c14bfbbed08e601dcbfe MD5 · raw file
- <cfcomponent extends="Model">
- <cffunction name="init">
- <cfset table("tags")>
- <cfset afterCreate("createWelcomePost")>
- </cffunction>
- <cffunction name="createWelcomePost">
- <cfset var objPost = model("Post").create(authorId=1, title="Welcome", body="This is my first post", views=0)>
- <cfif IsObject(objPost)>
- <cfreturn true>
- </cfif>
- <cfreturn false>
- </cffunction>
-
- <cffunction name="crashMe">
- <cfset var foo = 1 / 0>
- </cffunction>
- </cfcomponent>