# EntityToQuery()

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

```
EntityToQuery( entity=object, name=string );
```

**Returns:** query

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| entity | object | Yes | entity or array of entities |  |
| name | string | No | name of the entities |  |

# Examples

*There are currently no examples for this function.*







# Categories

[ORM](../../categories/orm.md)