I want to react on flagging of a comment and create a new entity referencing that flagged comment using entity reference.

while creating a new entity of type message with a entity reference field, which references comments I ran into this issue:

while trying to set the data value of the field that references the comment, it expects a value of type Content, instead of Comment for that reference field.

Referencing users and usual nodes worked without problems, so this seems to be bugged?

Support from Acquia helps fund testing for Drupal Acquia logo