Feature #3728

Support arrays of objects as controller arguments

Added by Sebastian Kurfuerst almost 4 years ago. Updated over 2 years ago.

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

0%

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

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

Updated by Robert Lemke almost 4 years ago

  • Target version deleted (283)

Updated by Karsten Dambekalns over 3 years ago

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

Also available in: Atom PDF