library/Garp/Content/Relation/Manager.php
protected static function _addForeignKeysToRow(Zend_Db_Table_Row_Abstract &$row,
        array $reference, array $values
    ) {
        // Normalize array keys
        $values = array_values($values);
        foreach ($reference['columns'] as $i => $column) {
            if (!isset($values[$i])) {
                throw new Garp_Content_Relation_Exception(
                    sprintf(static::EXCEPTION_MISSING_VALUE, $column)
                );
            }
            $row->{$column} = $values[$i];
        }
    }
protected static function _addForeignKeysToRow(Zend_Db_Table_Row_Abstract &$row,
        array $reference, array $values
    ) {
        // Normalize array keys
        $values = array_values($values);
        foreach ($reference['columns'] as $i => $column) {
            if (!isset($values[$i])) {
                throw new Garp_Content_Relation_Exception(
                    sprintf(static::EXCEPTION_MISSING_VALUE, $column)
                );
            }
            $row->{$column} = $values[$i];
        }
    }
protected static function _addForeignKeysToRow ( Zend_Db_Table_Row_Abstract & $ row , array $ reference , array $ values ) { // Normalize array keys $ values = array_values ( $ values ) ; foreach ( $ reference [ 'columns' ] as $ i => $ column ) { if ( ! isset ( $ values [ $ i ] ) ) { throw new Garp_Content_Relation_Exception ( sprintf ( static :: EXCEPTION_MISSING_VALUE , $ column ) ) ; } $ row -> { $ column } = $ values [ $ i ] ; } }
Fill foreign key columns in a row.

@param Zend_Db_Table_Row_Abstract $row The row object
@param array $reference The reference from the referencemap
@param array $values The foreign key values
@return void Edits the row by reference
Fill foreign key columns in a row .