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

Jonas Eberle jonas.eberle at d-mind.de
Thu Dec 11 12:58:12 CET 2014


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