Actions
Bug #53871
closedNull values for argument values not possible
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-11-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If a controller got as argument a persistable object it is not possible to have it as optional value.
e.g. newsController
public function detailAction(Tx_News_Domain_Model_News $news = NULL, $currentPage = 1) {
reason is because in PersistentObjectConverter.php
in method fetchObjectFromPersistence
an exception is thrown
throw new \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException('Object with identity "' . print_r($identity, TRUE) . '" not found.', 1297933823);
Actions