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
Entity reference
module, which formatter you set in display setting?title only
orrendered entry
– Mohammad Ali Akbari Apr 27 '12 at 17:28