Feature #34867

Allow setting target type in MVC Argument

Added by Adrian Föder almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
MVC
Start date:
2012-03-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Yes
Complexity:

Description

Consider the following use case:

<?php

class SampleController extends \TYPO3\FLOW3\MVC\Controller\ActionController
    /**
     * 
     */
    public function initializeCreateAction() {
        $concreteClassName = $this->dummyFindOutConcreteProductProductClassName();
        $this->arguments['product']->setDataType($concreteClassName);
    }

    /**
     * @param \Acme\Northwind\Domain\Model\AbstractProduct $product
     */
    public function createAction(\Acme\Northwind\Domain\Model\AbstractProduct $product) {
    }
}
?>

Due to the fact that sub property's target types are settable, it makes sense (and is required for that use case) to allow setting the target type of an TYPO3\FLOW3\MVC\Controller\Argument, too.

#1

Updated by Adrian Föder almost 9 years ago

  • Tracker changed from Bug to Feature
#2

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9655

#3

Updated by Adrian Föder almost 9 years ago

  • Has patch changed from No to Yes
#4

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9655

#5

Updated by Karsten Dambekalns almost 9 years ago

  • Category set to MVC
  • Target version set to 1.1
#6

Updated by Sebastian Kurfuerst almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF