PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms 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
 1<cfcomponent extends="Model">
 2
 3	<cffunction name="init">
 4		<cfset table("userphotos")>
 5		<cfset setPrimaryKey("galleryid")>
 6		<cfset hasMany(
 7				name="photos"
 8				,modelName="photo"
 9				,foreignKey="galleryid"
10			)>
11	</cffunction>
12
13</cfcomponent>