Use dynamic_entity_reference field type for entity_id field of the like entity, since the entity_reference field type doesn't support multiple entity types.
Active
2.0
Code