how to export nodes and their referencing entities
My solution for this was to use the Migrate module. It is very powerful and you can create update classes for custom entities when one doesn't exist from the producer of the contrib module. I would highly recommend it.