Commit 2bfaff6b authored by jhodgdon's avatar jhodgdon

Issue #1918254 by dawehner: Fix docs and exception message typo in entity query code

parent aad0e55b
......@@ -69,7 +69,7 @@ public function get($entity_type, $conjunction, EntityManager $entity_manager) {
* The query object that can query the given entity type.
*/
public function getAggregate($entity_type, $conjunction, EntityManager $entity_manager) {
throw new QueryException('Aggregation over configuration enitties is not supported');
throw new QueryException('Aggregation over configuration entities is not supported');
}
}
......@@ -275,6 +275,18 @@ protected function result() {
return $this->sqlQuery->execute()->fetchAllKeyed();
}
/**
* Constructs a select expression for a given field and language.
*
* @param string $field
* The name of the field being queried.
* @param string $langcode
* The language code of the field.
*
* @return string
* An expression that will select the given field for the given language in
* a SELECT query, such as 'base_table.id'.
*/
protected function getSqlField($field, $langcode) {
if (!isset($this->tables)) {
$this->tables = new Tables($this->sqlQuery);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment