referenced entity not showing up in the node view page or in any view I create I have a custom module which defines a custom entity. On a content type, I have an 'Entity reference' field that let's me select a custom entity. The value is saved in the database (I looked directly to the database) but is missing when the node is viewed.

if I dump the $node in hook_node_update($node) I can see the referenced value is there. But on hook_node_view($nodes, $types) the value is gone.

The funny part is that in a view, if I create a relation based on this field, I can see the entity's fields, but not the entity reference field value :))

Other types of entities are displayed correctly though, the problem is only with my custom entity

Any help would be very appreciated :)
Thanks
I just Googled the same issue and was led to this page. 

You need to implement an access callback in hook_entity_info(), else the entity reference field won't load the entity.