protected function prepare() { if ($this->allRevisions
) { if (!
$base_table =
$this->entityType->
getRevisionTable()) { throw new QueryException("No revision table for " .
$this->entityTypeId . ", invalid query."
);
} } else { if (!
$base_table =
$this->entityType->
getBaseTable()) { throw new QueryException("No base table for " .
$this->entityTypeId . ", invalid query."
);
} } $simple_query = TRUE;
if ($this->entityType->
getDataTable()) { $simple_query = FALSE;
}