- πΈπͺSweden sl27257 Stockholm
Hmmm,
this was a loooong time ago... I need to figure out if I can manage to recreate this...
/Thomas
When using Flags as a relationship in views the following two errors pops up:
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 266 of /var/www/drupal8/core/lib/Drupal/Core/Entity/EntityStorageBase.php).
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list': SELECT node_field_data.created AS node_field_data_created, node_field_data.nid AS nid, id AS id FROM {node_field_data} node_field_data WHERE node_field_data.status = :db_condition_placeholder_0 ORDER BY node_field_data_created DESC LIMIT 11 OFFSET 0; Array ( [:db_condition_placeholder_0] => 1 )
Create a content View and add a Relationships to Flags
Please see the patch below
There are two problems:
/**
* {@inheritdoc}
*/
public function getFlagById($flag_id) {
return $this->entityTypeManager->getStorage('flag')->load($flag_id);
}
/**
* {@inheritdoc}
*/
public function query() {
if (!($flag = $this->getFlag())) {
return;
}
...
The provided patch fixes these two errors.
None
None
None
None
Postponed: needs info
Flag core
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Hmmm,
this was a loooong time ago... I need to figure out if I can manage to recreate this...
/Thomas