library/Garp/Model/Behavior/Translatable.php
protected function _getForeignKeyData(array $referenceMap, array $pKeys) {
        $data = array();
        $foreignKeyColumns = $referenceMap['columns'];
        if (count($foreignKeyColumns) !== count($pKeys)) {
            throw new Garp_Model_Behavior_Exception(
                sprintf(
                    self::SAVE_FOREIGN_KEY_EXCEPTION,
                    count($pKeys), count($foreignKeyColumns)
                )
            );
        }
        $data = array_combine($foreignKeyColumns, $pKeys);
        return $data;
    }
protected function _getForeignKeyData(array $referenceMap, array $pKeys) {
        $data = array();
        $foreignKeyColumns = $referenceMap['columns'];
        if (count($foreignKeyColumns) !== count($pKeys)) {
            throw new Garp_Model_Behavior_Exception(
                sprintf(
                    self::SAVE_FOREIGN_KEY_EXCEPTION,
                    count($pKeys), count($foreignKeyColumns)
                )
            );
        }
        $data = array_combine($foreignKeyColumns, $pKeys);
        return $data;
    }
protected function _getForeignKeyData ( array $ referenceMap , array $ pKeys ) { $ data = array ( ) ; $ foreignKeyColumns = $ referenceMap [ 'columns' ] ; if ( count ( $ foreignKeyColumns ) !== count ( $ pKeys ) ) { throw new Garp_Model_Behavior_Exception ( sprintf ( self :: SAVE_FOREIGN_KEY_EXCEPTION , count ( $ pKeys ) , count ( $ foreignKeyColumns ) ) ) ; } $ data = array_combine ( $ foreignKeyColumns , $ pKeys ) ; return $ data ; }
Create array containing the foreign keys in the relationship
mapped to the primary keys from the save.

@param Array $referenceMap The referenceMap describing the relationship
@param Arary $pKeys The given primary keys
@return Array
Create array containing the foreign keys in the relationship mapped to the primary keys from the save .