Closed (fixed)
Project:
Group
Version:
3.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2022 at 10:43 UTC
Updated:
21 Feb 2023 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lobsterr commentedIt is not a bug, it is correct behavior. The content can belong to several groups and this methods will return all GroupRelationships, if you want to load GroupRelationships for the current group use loadByGroup
Comment #3
lobsterr commentedOps, I was wrong, I didn't pay attention to the class! Yes, for the group it should filter by the current group. I just faced the same bug!
Comment #4
lobsterr commentedIn the previous version loadByGroup accepted "filters" and getRelationshipsByEntity wrapped it with entity_id passed as a filter
Comment #5
lobsterr commentedComment #6
lobsterr commented@mxh as a temp solution use loadByProperties, while I will prepare some solution
This example from ginvite module. I had to use this solution.
Comment #7
kristiaanvandeneyndeComment #10
kristiaanvandeneyndeComment #14
kristiaanvandeneyndeFixed silly mistake in v3 patch on commit.