PageRenderTime 11ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/models/Grade.cfc

http://raihan.googlecode.com/
ColdFusion CFScript | 20 lines | 9 code | 9 blank | 2 comment | 0 complexity | 5a656d2c717244f848c338b048ad1b0b MD5 | raw file
 1<cfcomponent displayname="Grade" hint="Grade" extends="Model" output="false">
 2
 3	<cffunction name="init" access="public" hint="init" description="init">
 4		
 5		<cfscript>
 6			
 7			// association
 8			belongsTo("company");
 9			
10			hasMany("employees");
11			
12			// validation
13			
14			return this;
15			
16		</cfscript>
17		
18	</cffunction> 
19	
20</cfcomponent>