cfdocs

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

Name Type Required Default Description
entity string Yes   Name of the entity to be loaded.
id string Yes   ID of the entity to be loaded.

Load an existing User object

user = entityLoadByPK("User", userID);