Project

General

Profile

Actions

Bug #78351

closed

Bug in f:debug on m:n relations

Added by Patric Schumann about 8 years ago. Updated over 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

Also available in: Atom PDF