Defining a relation in the structure of Entity A won't allow you to use $entityB->with('entityA')
because the relation only exists in the structure of the Entity A object. In your case you'll need to use a code_event_listener or class_extension to add a relation to the Entity you want to manipulate.