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

AttributeDescriptionRequiredDefault
entity nameName of the entity to be loaded.
idPrimary key id

Returns

object

Example

<cfscript> 
    art = EntityLoadByPK("Art", 1); 
    writedump(art); 
</cfscript>