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);
Updated by Georg Ringer almost 11 years ago
- Status changed from Rejected to New
the big problem is that in production context, records can be removed all the time and I don't want a general exception there but to handle that in the extension itself, e.g. redirect to a list view or displaying a specific content!
Actions