Feature #3728

Support arrays of objects as controller arguments

Added by Sebastian Kurfuerst about 6 years ago. Updated over 1 year ago.

Status:New Start date:2009-06-23
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:MVC
Target version:-
PHP Version: Complexity:
Has patch:

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 validation Accepted

History

#1 Updated by Robert Lemke about 6 years ago

  • Target version deleted (283)

#2 Updated by Karsten Dambekalns almost 6 years ago

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

#3 Updated by Kay Strobach over 1 year ago

isn't that already possible with a wrapper model?

Also available in: Atom PDF