public function getColumnNameForAttribute($attributeName)
    {
        if (!empty($this->mappings)) {
            $flipped = array_flip($this->mappings);
            if (isset($flipped[$attributeName])) {
                return $flipped[$attributeName];
            }
        }

        return $attributeName;
    }
public function getColumnNameForAttribute($attributeName)
    {
        if (!empty($this->mappings)) {
            $flipped = array_flip($this->mappings);
            if (isset($flipped[$attributeName])) {
                return $flipped[$attributeName];
            }
        }

        return $attributeName;
    }
public function getColumnNameForAttribute ( $ attributeName ) { if ( ! empty ( $ this -> mappings ) ) { $ flipped = array_flip ( $ this -> mappings ) ; if ( isset ( $ flipped [ $ attributeName ] ) ) { return $ flipped [ $ attributeName ] ; } } return $ attributeName ; }
Gets the column name of a given entity attribute.

@param string $attributeName

@return string
Gets the column name of a given entity attribute .