/** * Get the DatabaseQuerySelect to perform the load operation of items * * @param WireArray $items * @param Selectors|string|null $selectors Selectors or a selector string to find, or NULL to load all. * @return DatabaseQuerySelect * */ protected function getLoadQuery($selectors = null) { $query = parent::getLoadQuery($selectors); $lookupTable = $this->getLookupTable(); $query->select("{$lookupTable}.data"); return $query; }
/** * Get the DatabaseQuerySelect to perform the load operation of items * * @param Selectors|string|null $selectors Selectors or a selector string to find, or NULL to load all. * @return DatabaseQuerySelect * */ protected function getLoadQuery($selectors = null) { $query = parent::getLoadQuery($selectors); $lookupTable = $this->wire('database')->escapeTable($this->getLookupTable()); $query->select("{$lookupTable}.data"); // QA return $query; }