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
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