Closed (fixed)
Project:
Content Model & Site Documentation
Version:
1.0.36
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2025 at 13:46 UTC
Updated:
1 Dec 2025 at 17:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mibfire commentedI created a patch to fix this properly.
Comment #5
swirtThank you for creating this issue and getting a patch submitted so rapidly.
I took the patch and created a MR from it. So scan's and linting would run.
Comment #6
swirtComment #7
mibfire commented@swirt
My bad. I will fix this.
Comment #8
mibfire commented@swirt
Actually this is not just my fault. This RelatedEntities class should have been a service. Could you pls transform RelatedEntities class to a service?
Comment #9
mibfire commented@swirt
Or may i make this service? That is also fine for me.
Comment #10
swirtThanks mibfire. I'll look at this closer in the next couple days. i'm not sure if this needs to be a service or not. I need to spend some time looking at it. It's been too long since I wrote it 😀
Comment #11
mibfire commented@swirt
Np, either way i think we should not create object directly calling the class and instantiating it. Either this should be a service as i said or we should use the
to be able to use DI, this way we could extend the RelatedEntities class with ContainerInjectionInterface. So in this case we could set in the RelatedEntities class itself how and with what services the RelatedEntities class can be instantiated by default.
Ok, pls take a look at this and tell me if you can do this or i can take over this task from you.
Thanks
Comment #12
swirt@mibfire I have taken this as far as I can tonight. (I need sleep). If you can spot the problem, feel free to add commits. I won't be touching it for another 24 hours.
Comment #13
swirt$references['target_bundles'] ends up as an empty array for both the user View and the Term view.
Comment #14
mibfire commented@swirt
I will check this shortly, but i know my patch works flawlessly because i have created tons of diagrams with it so far, and it includes all types of entities with views reference.
Comment #15
swirtI think I figured out one of the problems. It is unrelated to this MR. entitiy reference to User entities are not referenced in this diagram at all.
I created a separate issue #3560618: Entity reference to users from content entities are not shown on the diagram.
Comment #17
swirtComment #19
swirtThis was released as 1.0.37
Thank you again @mibfire for all you work on this.
Comment #20
mibfire commented@swirt
I would have checked this, but you were faster. Thank you too for the new service, the fine tuning & polishing and the credit. :)