$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

skwashd’s picture

Status: Active » Closed (works as designed)

Drupal core stores uid as an integer. You can use deploy to move entities between different environments.

A.Kotov’s picture

I 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

skwashd’s picture

Project: Universally Unique IDentifier » Entity Sync
Status: Closed (works as designed) » Active

Thanks 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.