Converts the input entity object or the input array of entity objects to a query object.
Query
EntityToQuery (orm_object, [entity_name]) |
Parameter |
Description |
|---|---|
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. |
entity_name |
Name of the entity. Use this optional parameter to return the query of the given entity in the case of inheritance mapping. |
ColdFusion 9: Added this function.
The following conditions apply for this function:
<cfset artists = EntityLoad("Artist")> |
Sign in to your account