- Issue created by @pianomansam
I'm simply documenting this here since this is the context I experienced the issue. This is actually a core issue and is being worked on here: π CommentSelection::entityQueryAlter() fails on validate when referencing entity is not a comment Fixed
I only discovered this today, but apparently ever since Drupal 9.5, I get this error when creating or editing a flagging on a comment:
Call to undefined method Drupal\flag\Entity\Flagging::getCommentedEntityTypeId()
This only happens on a flagging that uses a Field Entry Form.
Spin up a Drupal 9.5 site on simplytest.me and add a flagging type to a comment that uses a Field Entry Form. Drupal 9.4 and under do not experience this issue.
π CommentSelection::entityQueryAlter() fails on validate when referencing entity is not a comment Fixed
Closed: duplicate
Flag core