EntitytoQuery

Description

Converts the input entity object or the input array of entity objects to a query object.

Category

ORM functions

Function Syntax

EntitytoQuery (orm_object) 
EntitytoQuery (orm_object_array)

Parameter

orm_object: Entity object that needs to be converted to a query object.

orm_object_array: Array that needs to be converted to a query object.

Example

<cfset artists = EntityLoad("Artist")> 
<cfset artistQuery = EntityToQuery(artists)>