/** * @return string */ protected function getRealAttributeName() { return $this->modelRelationsAndAttributesToReportAdapter->resolveRealAttributeName($this->filter->getResolvedAttribute()); }
/** * @param string $attribute * @return string */ public static function resolveRealAttributeName($attribute) { assert('is_string($attribute)'); if ($attribute == ModelRelationsAndAttributesToSummableReportAdapter::DISPLAY_CALCULATION_COUNT) { return 'id'; } return parent::resolveRealAttributeName($attribute); }