public function fieldName() { if ($formatted = $this->formatFieldName($this->key)) { return $formatted; } elseif (strpos($this->key, '_id')) { return str_replace('_id', '', $this->key); } else { return $this->key; } }