Enable Relationships in Views with Entities?
You will need to use (or override) the views_handler_relationship class to create the relationship, and also use hook_views_data_alter(&amp;$data) to tell views how to use the handler and with which tables/columns it applies.