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.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy