/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

  1. <cfcomponent extends="wheelsMapping.Controller">
  2. <cfset author = model("author").findOne(where="lastname = 'Djurner'", include="profile")>
  3. <cfset author.posts = author.posts(include="comments", returnAs="objects")>
  4. </cfcomponent>