protected function setCombinationFileId(array &$combination, array $data)
    {
        foreach ($data['images'] as $image) {
            if ($image['path'] === $combination['path']) {
                $combination['file_id'] = $image['file_id'];
            }
        }

        return $combination;
    }
protected function setCombinationFileId(array &$combination, array $data)
    {
        foreach ($data['images'] as $image) {
            if ($image['path'] === $combination['path']) {
                $combination['file_id'] = $image['file_id'];
            }
        }

        return $combination;
    }
protected function setCombinationFileId ( array & $ combination , array $ data ) { foreach ( $ data [ 'images' ] as $ image ) { if ( $ image [ 'path' ] === $ combination [ 'path' ] ) { $ combination [ 'file_id' ] = $ image [ 'file_id' ] ; } } return $ combination ; }
Adds a file ID from uploaded images to the combination item
@param array $combination
@param array $data
@return array
Adds a file ID from uploaded images to the combination item