entityLoadByPK

Loads and returns an array of objects for given primary key.
Use this function to avoid specifying the required boolean parameter in EntityLoad().

entityLoadByPK(entity, id) → returns any

Argument Reference

entity string
Required

Name of the entity to be loaded.

id string
Required

ID of the entity to be loaded.

Compatibility

Lucee:

Allows the optional unique parameter.

Examples
Sample code invoking the entityLoadByPK function

user = entityLoadByPK("User", userID);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub