Mapping CFCs without properties

If a persistent CFC has no property, all table columns are added as properties provided that the table exists and you have specified it.

Example

Artist.cfc

component persistent="true" table="artists"
{
}

index.cfm

<cfset artists = entityLoad("Artist")>
<cfdump var="#artists#">

The columns are fetched only as column properties. Relationship, timestamp, or version field are not added.

Limitations

  • If the mapping file for the CFC exists, then the properties are not added automatically.
  • In the case of inheritance, properties are not added to the CFC automatically.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online