protected function getValueForQuery($alias) { $value = $this->getConvertedValue($alias); return is_null($value) ? $this->getValue() : $value; }