Bug #78351
closedBug in f:debug on m:n relations
0%
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.
simplified code:
works: <f:for each="{departments}" as="department">
works: <f:debug>{department}</f:debug>
works: <h2>{department.title}</h2>
works: <f:for each="{department.employees}" as="employee">
works: {employee.name}
breaks: <f:debug>{employee}</f:debug>
</f:for>
</f:for>
This is not a huge problem, but i wanted to report it while stumbling over it.