commit a336d9d4d459694d042e70ee73cb21cb68079726 Author: Lee Rowlands Date: Thu Jan 2 18:53:47 2014 +1000 [#comment] whoops diff --git a/core/modules/comment/lib/Drupal/comment/CommentStatistics.php b/core/modules/comment/lib/Drupal/comment/CommentStatistics.php index c729883..2f88f50 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentStatistics.php +++ b/core/modules/comment/lib/Drupal/comment/CommentStatistics.php @@ -89,7 +89,7 @@ public function delete(EntityInterface $entity) { * {@inheritdoc} */ public function initializeRecord(ContentEntityInterface $entity, $fields) { - $query = $this->database->select('comment_entity_statistics') + $query = $this->database->insert('comment_entity_statistics') ->fields(array( 'entity_id', 'entity_type',