/wheels/tests/_assets/controllers/ControllerWithNestedModel.cfc
http://cfwheels.googlecode.com/ · ColdFusion CFScript · 6 lines · 4 code · 2 blank · 0 comment · 0 complexity · 826d58eca2f365fc91bbdccfe3602c85 MD5 · raw file
- <cfcomponent extends="wheelsMapping.Controller">
-
- <cfset author = model("author").findOne(where="lastname = 'Djurner'", include="profile")>
- <cfset author.posts = author.posts(include="comments", returnAs="objects")>
-
- </cfcomponent>