Actions
Bug #65061
closedAbstractFileCollection @var mixed causes Exception #1315564744
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-02-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
Actions