Created
September 16, 2016 15:51
-
-
Save chriscalip/e2f445719ea76e95ef6a7e1cf127a014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
langcode: en | |
status: true | |
dependencies: { } | |
id: ya_node_article | |
migration_tags: null | |
migration_group: ya_example | |
label: 'Nodes (Article)' | |
source: | |
plugin: d7_node | |
node_type: article | |
process: | |
nid: nid | |
vid: vid | |
langcode: | |
plugin: default_value | |
source: language | |
default_value: und | |
title: title | |
# by not using plugin migration, this has potential of id collisions. | |
uid: node_uid | |
status: status | |
created: created | |
changed: changed | |
promote: promote | |
sticky: sticky | |
revision_uid: revision_uid | |
revision_log: log | |
revision_timestamp: timestamp | |
body: body | |
# references migration ya_node_page for id migration integrity. | |
field_drupal8_pages: | |
plugin: migration | |
migration: ya_node_page | |
source: field_drupal7_pages | |
destination: | |
plugin: 'entity:node' | |
default_bundle: article | |
migration_dependencies: | |
required: | |
- ya_node_page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code> | |
Array | |
( | |
[0] => lookupDestinationIds after conditions | |
[1] => Array | |
( | |
[target_id] => 68 | |
) | |
[2] => Array | |
( | |
[nid] => sourceid1 | |
) | |
[3] => Array | |
( | |
) | |
[4] => 02db060eff943c9d3e99f79dd573e1e2ab0d52d4dd041f59a0bc63f453f0af82 | |
) | |
Processed 1 item (0 created, 0 updated, 1 failed, 0 ignored) - done with 'ya_node_article' [status] | |
✝ vagrant@multi-vlad ✝ ../site/vlad_aux/d7d8-dev | |
$ drush mmsg ya_node_page | |
No messages for this migration [status] | |
✝ vagrant@multi-vlad ✝ ../site/vlad_aux/d7d8-dev | |
$ drush mmsg ya_node_article | |
source_ids_hash level message | |
34bf071f7083187c532015c732883ef4cd27d0351b55d4a5c6233fefa9a5d0a5 1 Extra unknown items in source IDs | |
33c8981f3a32ae575f410557a535f68eead82c0d3535cbfa5025bb9658e93d64 1 Extra unknown items in source IDs | |
</code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush_print_r(array('lookupDestinationIds after conditions',$source_id_values,$this->sourceIdFields(),$conditions,$this->getSourceIDsHash(array_values($conditions)))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
✝ vagrant@multi-vlad ✝ ../site/vlad_aux/d7d8-dev
$ drush mi ya_node_article --limit=1
Array
(
[0] => lookupDestinationIds begin
[1] => Array
(
[target_id] => 68
)
)
Array
(
[0] => lookupDestinationIds inside foreach
[1] => nid
[2] => sourceid1
)
lookupDestinationIds after conditions
$source_id_values
Array
(
[target_id] => 68
)
$this->sourceIdFields()
Array
(
[nid] => sourceid1
)
$conditions
Array
(
)
$this->getSourceIDsHash(array_values($conditions))
02db060eff943c9d3e99f79dd573e1e2ab0d52d4dd041f59a0bc63f453f0af82
Processed 1 item (0 created, 0 updated, 1 failed, 0 ignored) - done with 'ya_node_article' [status]
✝ vagrant@multi-vlad ✝ ../site/vlad_aux/d7d8-dev
$ drush mmsg ya_node_article
source_ids_hash level message
33c8981f3a32ae575f410557a535f68eead82c0d3535cbfa5025bb9658e93d64 1 Extra unknown items in source IDs
✝ vagrant@multi-vlad ✝ ../site/vlad_aux/d7d8-dev