Relation from Entity to Content

How would i define a reference from a Flow Entity (e.g. a User) to a Neos Content? Is there some Annotation for that? There is a good example for the other direction (content to Entity) here in discuss but i cannot find some example for Entity to Content.

That depends on your use case. I usually reference the node.identifier, but that means you need a node context object to actually get the node. But if that works for you one “node” (regardless of dimensions) is bound to one entity, that will work. For convenience I have a getter that accepts a context and does $context->getNodeByIdentifier() but the parameter is optional and if it’s null I just create a default live context…