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.

Returns

object

Category

ORM functions

Function Syntax

entityLoadByPK( entityName ,id)

Parameters

Parameter

Description

entity name

Name of the entity to be loaded.

id

Primary key id

See Also

EntityLoadEntityReloadEntityLoadByExampleEntityDeleteColdFusion ORM chapter in Developing ColdFusion Applications

History

ColdFusion 9: Added this function.

Example

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

 

 Adobe

Krijg sneller en gemakkelijker hulp

Nieuwe gebruiker?

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online