#65061AbstractFileCollection @var mixed causes Exception #1315564744
Description
We have a domain model Device, which connects list of StaticFileCollection records:
/** * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection> * @lazy */ protected $mediaHub;
A controller, that shows a Device
DeviceController->showAction(Device $device)
In TYPO3 < 6.2 all was fine, because no recursive validation was taking place, but since 6.2 the following Exception is thrown:
#1315564744: @var annotation of Found an invalid element type declaration in class "TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection", property "itemsCriteria". A type "'mixed'" does not exist.
And is caused by AbstractFileCollection:
/** * Field contents of $itemsCriteriaField. Defines which the items or search criteria for the items * depending on the type (see self::$type above) of this file collection. * * @var mixed */ protected $itemsCriteria;
Now this is solved by XCLASSing AbstractFileCollection and adding in xlcass this method:
public function __toString() { return __CLASS__; }
TYPO3 6.2.9
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.