Phillip Senn
Phillip Senn

Reputation: 47595

ColdFusion9 orm properties in script

I'd like to write the following in script syntax rather than the old style tag syntax.

<cfcomponent persistent="true" table="AuditType" schema="Audit" >
    <cfproperty name="AuditTypeID" column="AuditTypeID" ormtype="int" fieldtype="id" />
    <cfproperty name="AuditTypeName" column="AuditTypeName" ormtype="string"  />
    <cfproperty name="AuditTypeSort" column="AuditTypeSort" ormtype="integer" />
</cfcomponent>

Upvotes: 0

Views: 166

Answers (1)

John Beynon
John Beynon

Reputation: 37507

the cfscript syntax really is quite similar,

component persistent="true" table="AuditType" schema="Audit" {
  property name="AuditTypeID" column="AuditTypeID" ormtype="int" fieldtype="id";
  property name="AuditTypeName" column="AuditTypeName" ormtype="string";
  property name="AuditTypeSort" column="AuditTypeSort" ormtype="integer";
}

Upvotes: 7

Related Questions