Project

General

Profile

Actions

Bug #54057

closed

Recursive validation validates too deep

Added by Stefan Froemken over 10 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2013-11-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Hello Extbase-Team,

I have 2 Domainmodels: Event and Day. It's a MM-Relation. One Event can be at several days and one day there can be several events. Thats why I have defined event.days as LazyObjectStorage and day.events as LazyObjectStorage.
I have debugged the Validator-API and found out that the loop over event.days needs nearly a second.

It validates my event -> days -> all related events incl. my event -> days -> all related events incl. my event -> days -> and so on. Somewhere after many hundreds of loops the validator breaks and returns a valid Result-Object, but all previous validated properties (before days, like: title, eventStart, ...) get lost.

So maybe it would be good to have a cache for already validated objects. They all have a unique identifier spl_hash. So in my opinion it should be possible to implement such a cache.

What do you think about it?

Stefan


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #53970: getBaseValidatorConjunction is called for simple typesClosed2013-11-26

Actions
Related to TYPO3 Core - Task #44391: Remove deprecated stuff in ValidationRejected2013-01-08

Actions
Actions

Also available in: Atom PDF