$Node->uid; - defines author for the node
Why not set author uuid for node?
Author is not changed often.
If I like to sync entities/nodes between sites with different uid tables I have to add extra field to node "field_author_uuid" to be able to find (and set for the node) author uid at destination site.
Comments
Comment #1
skwashd commentedDrupal core stores uid as an integer. You can use deploy to move entities between different environments.
Comment #2
A.Kotov commentedI use https://www.drupal.org/project/entitysync - it could sync in real time.
I do not mean to replace uid with uuid, but just add $node->uuid
Comment #3
skwashd commentedThanks for the additional info. I think this should be handled in entity sync.. I am moving it over to that queue. Deploy leverages UUID but adds the additional data it needs to ensure data is consistent across environments.