Project

General

Profile

Actions

Bug #78351

closed

Bug in f:debug on m:n relations

Added by Patric Schumann over 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-10-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Claus Due over 7 years ago

  • Category changed from Fluid to Extbase

Belongs with DebuggerUtility which is part of Extbase.

Actions #2

Updated by Stefan Froemken about 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

Actions #3

Updated by Alexander Schnitzler about 4 years ago

  • Status changed from New to Closed

Closed for now. Feel free to reopen if Stefans approach doesn't suffice.

Actions

Also available in: Atom PDF