function RelationQuery::__construct in Relation 7
Constructor for RelationQuery.
File
- ./
relation.database.inc, line 21 - Database query functions.
Class
- RelationQuery
- Handler class for entity relations.
Code
function __construct($entity_type = NULL, $entity_id = NULL, $r_index = NULL) {
if (isset($entity_type)) {
$this
->related($entity_type, $entity_id, $r_index);
}
$this
->entityCondition('entity_type', 'relation');
}