Converts the input entity object or the input array of entity objects to a query object.
entityToQuery (orm_object, [entity_name])
entityToQuery (orm_object_array, [entity_name])

entityToQuery(orm_object [, entity_name]) → returns query

Argument Reference for the entityToQuery function


Required: Yes
Entity object that needs to be converted to a query object.


Required: No
Name of the entity. Use this optional parameter to return the query of the given entity in the case of inheritance mapping.

Fork me on GitHub