/** * {@inheritdoc} */ public function query() { $this->ensureMyTable(); if ($this->definition['currency_code_field']) { $this->addAdditionalFields(array('currency_code_field' => array('field' => $this->definition['currency_code_field'], 'table' => $this->definition['currency_code_table'] ? $this->definition['currency_code_table'] : $this->tableAlias))); } parent::query(); }