PageRenderTime 24ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): Apache-2.0, CPL-1.0
  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>