- π¦πΉAustria mvonfrie
Where is the change record regarding the removal of the
$filters
parameter ofGroup::getContentEntities($plugin_id, $filters)
(orGroup::getRelatedEntities($plugin_id, $filters)
in 2.x/3.x)?How can I rewrite my code which uses the filters? In my case the filter depends on the bundle type of the related entities, for type A I have to filter on the group owner UID, for type B on the current user UID. And there are two more filters to apply, which are more difficult to explain.
- π§πͺBelgium kristiaanvandeneynde Antwerp, Belgium
https://www.drupal.org/node/3258952 β
You can look into the method you were using and write a similar entity query.
- πΊπΈUnited States hungdo
The static query with distinct option consumes alot of memory in our site since our group_relationship_field_data table is roughly 200K records.
Attaching a patch that uses
GroupContentStorageInterface::loadByEntity()
method instead.