Last updated on
Jan 13, 2022
|
Also applies to ColdFusion
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")> |
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.