Views relationship between user and custom created entity I've an custom entity type : "card", witch has a property named "owner", an entity_reference to the owner of the card.

My custom entity is pretty basic and has been created trough Drupal Console.

If I create a view on Cards I can use the relationship to get the "owner" fields and properties accessible. 

But if on a  Users based view, the reverse relationship is not present : I can't access card information's from the owner.

Am-I missing something ? Do I have to set up this reverse relationship somewhere ?

Thanks in advance !
Ok ! finally found out !

I had to use the hook_views_data_alter to put the relationship on the user : 

/**
 * Implements hook_views_data_alter().
 */
function MYMODULE_views_data_alter(array &amp;$data) {
  $data['users_field_data']['cards'] = [
    'title' =&gt; t("Users cards"),
    'help' =&gt; t("Link the users to their cards"),
    'relationship' =&gt; [
      'group' =&gt; t('Cards'),
      'label' =&gt; t("User cards"),
      'base' =&gt; 'cards', // database table
      'base field' =&gt; 'owner', //database field to join on
      'relationship field' =&gt; 'uid',
      'id' =&gt; 'cards',
    ],
  ];
}