protected function getMappedParentAttribute(string $key) : string
    {
        if (array_key_exists($key, $this->columnMap)) {
            return $this->columnMap[$key];
        } else {
            return $key;
        }
    }
protected function getMappedParentAttribute(string $key) : string
    {
        if (array_key_exists($key, $this->columnMap)) {
            return $this->columnMap[$key];
        } else {
            return $key;
        }
    }
protected function getMappedParentAttribute ( string $ key ) : string { if ( array_key_exists ( $ key , $ this -> columnMap ) ) { return $ this -> columnMap [ $ key ] ; } else { return $ key ; } }
Get attribute name from the parent, if a map has been
defined.

@param string $key

@return string
Get attribute name from the parent if a map has been defined .