PageRenderTime 38ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/_assets/models/ViewUserPhotoKeyPhotoGalleryId.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | 7ae928a9466974972bdc50205ac6825f MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="Model">
  2. <cffunction name="init">
  3. <cfset table("userphotos")>
  4. <cfset setPrimaryKey("galleryid")>
  5. <cfset hasMany(
  6. name="photos"
  7. ,modelName="photo"
  8. ,foreignKey="galleryid"
  9. )>
  10. </cffunction>
  11. </cfcomponent>