library/Garp/Content/Manager.php
protected function _filterForeignKeyColumns($fields, $referenceMap) {
        $out = array();
        $foreignKeys = array();
        // create an array of foreign keys...
        foreach ($referenceMap as $relName => $relConfig) {
            $foreignKeys = array_merge($foreignKeys, (array)$relConfig['columns']);
        }
        // ...and return the values that are not in that array.
        return array_diff($fields, $foreignKeys);
    }
protected function _filterForeignKeyColumns($fields, $referenceMap) {
        $out = array();
        $foreignKeys = array();
        // create an array of foreign keys...
        foreach ($referenceMap as $relName => $relConfig) {
            $foreignKeys = array_merge($foreignKeys, (array)$relConfig['columns']);
        }
        // ...and return the values that are not in that array.
        return array_diff($fields, $foreignKeys);
    }
protected function _filterForeignKeyColumns ( $ fields , $ referenceMap ) { $ out = array ( ) ; $ foreignKeys = array ( ) ; // create an array of foreign keys... foreach ( $ referenceMap as $ relName => $ relConfig ) { $ foreignKeys = array_merge ( $ foreignKeys , ( array ) $ relConfig [ 'columns' ] ) ; } // ...and return the values that are not in that array. return array_diff ( $ fields , $ foreignKeys ) ; }
Filter columns that are foreign keys.

@param array $fields All columns
@param array $referenceMap The model's referenceMap
@return array
Filter columns that are foreign keys .