Bug #34672

Production context is not working

Added by Kira Backes over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Reflection
Start date:
2012-03-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When running an application (that uses Collections) in Production context the following exception is thrown:

  Catchable Fatal Error: Argument 2 passed to
  TYPO3\FLOW3\Validation\Validator\GenericObjectValidator_Original::addPropertyValidator()
  must implement interface
  TYPO3\FLOW3\Validation\Validator\ValidatorInterface, null given, called
  in
  /var/development/flow3/finderON/Data/Temporary/Production/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Validation_ValidatorResolver_Original.php
  on line 240 and defined in
  /var/development/flow3/finderON/Data/Temporary/Production/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Validation_Validator_GenericObjectValidator_Original.php
  line 148

.

Can be fixed by changing TYPO3\FLOW3\Reflection\ReflectionService.php:433
(Method isClassImplementationOf)

        $this->loadOrReflectClassIfNecessary($className);

to

        $this->loadOrReflectClassIfNecessary($className);
        $this->loadOrReflectClassIfNecessary($interfaceName);

Also available in: Atom PDF