Field Entry Form on comment flag generates Error Call to undefined method Drupal\flag\Entity\Flagging::getCommentedEntityTypeId()

Created on 9 March 2023, over 1 year ago

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

Problem/Motivation

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.

Steps to reproduce

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.

Proposed resolution

πŸ› CommentSelection::entityQueryAlter() fails on validate when referencing entity is not a comment Fixed

πŸ› Bug report
Status

Closed: duplicate

Component

Flag core

Created by

πŸ‡ΊπŸ‡ΈUnited States pianomansam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024