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.
Updated by Claus Due about 8 years ago
- Category changed from Fluid to Extbase
Belongs with DebuggerUtility which is part of Extbase.
Updated by Stefan Froemken over 4 years ago
Hello Patric,
sinnce TYPO3 8 or 9 we have extended f:debug a lot. You can use blacklistedClassNames and/or blacklistedPropertyNames to hide recursive calls.
IMO this ticket can be closed now.
Stefan
Updated by Alexander Schnitzler over 4 years ago
- Status changed from New to Closed
Closed for now. Feel free to reopen if Stefans approach doesn't suffice.