Issue Bug Closed

#78351Bug in f:debug on m:n relations

Patric Schumann 10/19/16, 17:27 updated 04/18/20, 11:49

Description

Hi,

i encountered this in 7.6.11 while developing a user-management.

First: I extended fe_users with an employee model and created a departments-model. Then i created a m:n relation between employees and departments.

I can access and display all data, when iterating over departments via f:for each.
I can as well access all employees inside the departments and display all values i want.
What i cant is <f:debug> the employees directly. At this point my system hangs completely. I guess, since it’s a storage-objects inside a storage-object containing the parent, it is due to an endless-loop in the m-n-relation, while debugging.</f:debug>

simplified code:
works: <f:for each="{departments}" as="department"><br>works: <f:debug>{department}</f:debug><br>works: <h2>{department.title}</h2><br>works: <f:for each="{department.employees}" as="employee"><br>works: {employee.name}<br>breaks: <f:debug>{employee}</f:debug> <br> </f:for><br> </f:for>

This is not a huge problem, but i wanted to report it while stumbling over it.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.