[TYPO3-mvc] Checking pid in UpdateAction

Aimo Kuenkel mail at aimo.cc
Thu Oct 17 15:16:42 CEST 2013


Dear List,

I have a custom extbase backend module for managing some records.
In the UpdateAction I should check if the model is accessible by the editor, that should be done via the pid.
This was my approach:

                public function updateAction(\Vendor\Key \Domain\Model\Foo $foo) {
                               if ($foo->getPid() != 123) {
                                               $this->forward('index');
                               }
                               ...
                }

However, getPid() always returns null.

Any idea how to solve that?

Thanks in advance,
Aimo Künkel


More information about the TYPO3-project-typo3v4mvc mailing list