PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/_assets/models/Gallery.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 742b08cc7bf5a21dea63beb7ddda6892 MD5 | raw file
1<cfcomponent extends="Model">
2
3	<cffunction name="init">
4		<cfset belongsTo(name="user", modelName="user", foreignKey="userid")>
5		<cfset hasMany(name="photos", modelName="photo", foreignKey="galleryid")>
6		<cfset nestedProperties(associations="photos", allowDelete="true")>
7	</cffunction>
8
9</cfcomponent>