entityToQuery

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

entityToQuery Argument Reference

orm_object
Required

Entity object 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.

Fork me on GitHub