Hi, there,

I have tried to use this module for implementing a referential connection between my customized "Reply" entity and Comment entity.

What I did is added an entity reference field "field_ref_comment" in Reply entity, and enabled prepopulate function; no special options has been selected. I have selected the "Story Comment" and "Writer Comment" as the target content in this field.

However, every time I tried to create Reply node via prepopulate link, such as "http://mysite/node/add/reply?field_ref_comment=[cid]", I got these error messages as follow:

PDOException:SQLSTATE[42S22]: Column not found: 1054 Unknown column 'comment.node_type' in 'where clause': SELECT comment.cid AS entity_id, :entity_type AS entity_type, NULL AS revision_id FROM {comment} comment INNER JOIN {node} n ON n.nid = comment.nid WHERE (comment.cid IN (:db_condition_placeholder_0)) AND (comment.node_type IN (:db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 41012 [:db_condition_placeholder_1] => comment_node_writer [:db_condition_placeholder_2] => comment_node_story [:entity_type] => comment ) 於 EntityFieldQuery->execute() (.../includes/entity.inc .....)。

But, it will work if I replace the target content from Comment entity to Content type entity, as well as [cid] to [nid].

Any suggestion for this issue?

Comments

tky created an issue.

delacosta456’s picture

hi i am facing similar issue too concerning comment referencing...

On my own side i am referencing a paragraphs item from comment with prepopulate option checked and so was expecting that this will make "entityreference" (create links) available in panel/panelizer as it does for not but it wasn't the case

Thanks