/wheels/tests/_assets/models/ViewUserPhotoKeyPhotoGalleryId.cfc
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
- <cfcomponent extends="Model">
-
- <cffunction name="init">
- <cfset table("userphotos")>
- <cfset setPrimaryKey("galleryid")>
- <cfset hasMany(
- name="photos"
- ,modelName="photo"
- ,foreignKey="galleryid"
- )>
- </cffunction>
-
- </cfcomponent>