[TYPO3-mvc] Map parameters to Extbase controller action even if record is hidden

Jonas Eberle jonas.eberle at d-mind.de
Thu Dec 11 13:05:15 CET 2014


This bug might be related:
https://forge.typo3.org/issues/8483
(but it came to a very different solution that is not helping in this case)


Am 11.12.2014 um 12:58 schrieb Jonas Eberle:
> Hi,
>
> I have an edit-action that should be able to edit hidden records.
>
> It looks like this:
>
>     /**
>      * @param \Some\Namespace\Domain\Model\SomeModel $someModel
>      * @ignorevalidation $someModel
>      *
>      * @return void
>      */
>     public function editAction( \Some\Namespace\Domain\Model\SomeModel 
> $someModel ) {
>     }
>
> When invoked with a hidden record, it would say:
> Exception while property mapping at property path "":Object with 
> identity "125" not found.
>
> I am looking for something like 
> $this->arguments['someModel']->mapIfHidden( true ); to be used in the 
> initialize-action.
>
> Do you have an idea how I could get property mapping also for deleted 
> records?
>
> Best regards,
> Jonas
>
>
>


-- 
Neu: Portal Region Stuttgart - www.region-stuttgart.de
Neu: emobil-in-bw.de
Neukunde: Statistisches Landesamt BaWü
--------------------------------
d-mind bei Facebook: http://www.facebook.com/werbeagentur.internetagentur.stuttgart
--------------------------------
d-mind
Fuchs/Weiß/Strobel GbR
Mörikestraße 69
70199 Stuttgart
Tel.: +49 711 280481-1 (Durchwahl: -18)
Fax: +49 711 2804813
Inhaber: Jens Fuchs, Michael Weiß, Jens Strobel
www.d-mind.de



More information about the TYPO3-project-typo3v4mvc mailing list