entityLoadByPK
Description
Loads and returns an array of objects for the specified primary key. Use this function to avoid specifying the boolean parameter that you must specify with the EntityLoad() function.
Categories
Related
History
ColdFusion
9: Added this function.
Syntax
entityLoadByPK( entityName ,id)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| entity name | Name of the entity to be loaded. | ||
| id | Primary key id |
Returns
object
Example
<cfscript>
art = EntityLoadByPK("Art", 1);
writedump(art);
</cfscript>