lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
private function getFieldNameForColumn($tableName, $columnName, $fk = false)
    {
        if (isset($this->fieldNamesForColumns[$tableName], $this->fieldNamesForColumns[$tableName][$columnName])) {
            return $this->fieldNamesForColumns[$tableName][$columnName];
        }

        $columnName = strtolower($columnName);

        // Replace _id if it is a foreignkey column
        if ($fk) {
            $columnName = str_replace('_id', '', $columnName);
        }

        return Inflector::camelize($columnName);
    }
private function getFieldNameForColumn($tableName, $columnName, $fk = false)
    {
        if (isset($this->fieldNamesForColumns[$tableName], $this->fieldNamesForColumns[$tableName][$columnName])) {
            return $this->fieldNamesForColumns[$tableName][$columnName];
        }

        $columnName = strtolower($columnName);

        // Replace _id if it is a foreignkey column
        if ($fk) {
            $columnName = str_replace('_id', '', $columnName);
        }

        return Inflector::camelize($columnName);
    }
private function getFieldNameForColumn ( $ tableName , $ columnName , $ fk = false ) { if ( isset ( $ this -> fieldNamesForColumns [ $ tableName ] , $ this -> fieldNamesForColumns [ $ tableName ] [ $ columnName ] ) ) { return $ this -> fieldNamesForColumns [ $ tableName ] [ $ columnName ] ; } $ columnName = strtolower ( $ columnName ) ; // Replace _id if it is a foreignkey column if ( $ fk ) { $ columnName = str_replace ( '_id' , '' , $ columnName ) ; } return Inflector :: camelize ( $ columnName ) ; }
Return the mapped field name for a column, if it exists. Otherwise return camelized version.

@param string $tableName
@param string $columnName
@param bool   $fk         Whether the column is a foreignkey or not.

@return string
Return the mapped field name for a column if it exists . Otherwise return camelized version .