Issue Bug Closed

#53871Null values for argument values not possible

Georg Ringer 11/22/13, 13:59 updated 02/12/14, 08:27

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);
        

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.