|
Revision 809, 0.7 kB
(checked in by lmajano, 6 years ago)
|
|
Illidium Scaffolding Templates
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | <%cffunction name="create#root.bean.xmlAttributes.name#" access="public" output="false" returntype="#root.bean.xmlAttributes.path#"%> |
|---|
| 2 | <cfloop from="1" to="#arrayLen(root.bean.dbtable.xmlChildren)#" index="i"><%cfargument name="#root.bean.dbtable.xmlChildren[i].xmlAttributes.name#" type="#root.bean.dbtable.xmlChildren[i].xmlAttributes.type#" required="<cfif root.bean.dbtable.xmlChildren[i].xmlAttributes.primaryKey eq "Yes">true<cfelse>false</cfif>" /%> |
|---|
| 3 | </cfloop> |
|---|
| 4 | <%cfset var #root.bean.xmlAttributes.name# = createObject("component","#root.bean.xmlAttributes.path#").init(argumentCollection=arguments) /%> |
|---|
| 5 | <%cfreturn #root.bean.xmlAttributes.name# /%> |
|---|
| 6 | <%/cffunction%> |
|---|