Feature #3728

Support arrays of objects as controller arguments

Added by Sebastian Kurfuerst over 12 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
MVC
Target version:
-
Start date:
2009-06-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Sometimes, you need to receive a variable number of objects of a given type as argument in the controller.

It would be nice to have a syntax like:

/** * @param F3\Blog\Post[] $posts An array of posts
*/
public function changeAction(array $posts) {
// do something with the list of posts here.
}

So, the general question is: How do we edit multiple items of the same type (or later, of different types) at the same time?

Greets,
Sebastian


Related issues

Related to TYPO3.Flow - Feature #4146: Support typed parameters for validationAcceptedKarsten Dambekalns

Actions
#1

Updated by Robert Lemke over 12 years ago

  • Target version deleted (283)
#2

Updated by Karsten Dambekalns about 12 years ago

The syntax is set now, it would be array<\F3\Blog\Post>

#3

Updated by Kay Strobach almost 8 years ago

isn't that already possible with a wrapper model?

Also available in: Atom PDF