[TYPO3-mvc] Question regarding argument mapping

Daniel Siepmann daniel.siepmann at typo3.org
Sat Feb 9 19:27:10 CET 2013


Hey Jan,

you have to send the identity to the Action via GET/Post, right.
But you have to tell Extbase that it should map it to an existing
object. You can do so by adding the parameter to the action.
Additionally add it to the phpdoc of the action.
If there is an identifier extbase will try to get it from the
database. If there are just properties, it will validate the object.
On success the action is called with the new object. On error, the
previous or error action will be called.

On Sat, Feb 9, 2013 at 6:34 PM, Daniel Siepmann
<layne.obserdia at gmail.com> wrote:
> Hey Jan,
>
> you have to send the identity to the Action via GET/Post, right.
> But you have to tell Extbase that it should map it to an existing
> object. You can do so by adding the parameter to the action.
> Additionally add it to the phpdoc of the action.
> If there is an identifier extbase will try to get it from the
> database. If there are just properties, it will validate the object.
> On success the action is called with the new object. On error, the
> previous or error action will be called.

--
Daniel Siepmann
TYPO3 Editorial Team Co-Leader

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list