I get the following error when generating content with a value in the "Maximum number of comments per node." field.

Fatal error: Call to undefined method stdClass::save() in ...drupal-8.x-dev/core/modules/comment/comment.module on line 1442

Files: 
CommentFileSizeAuthor
#2 devel-genc-comment-1375800-2.patch1.9 KBclemens.tolboom
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es).
[ View ]

Comments

Also hitting this error, tested with both 'testing' install profile plus node+comment modules enabled by hand, as well as the 'standard' install profile on core 8.x branch.

Status:Active» Needs review
StatusFileSize
new1.9 KB
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es).
[ View ]

As comments are now of class Comment we need to use it.

Attached patch reordered the creation of pid and uses entity_create().

Status:Needs review» Reviewed & tested by the community

Looks good to me. Do other entities need updating (hint hint)?

Good point ... I'll have to fix first 'drush entity' #1429040: entity-read fails on Drupal 8. If so we will post more bugs over here.

Where do we stand here, and in relation to #1549662: Node, taxonomy, comment, and user are all classed objects?

Status:Reviewed & tested by the community» Closed (duplicate)