[TYPO3-mvc] Missing class for a dataType should result in an error

Jochen Rau jochen.rau at typoplanet.de
Wed Apr 7 11:46:24 CEST 2010


Hi Felix,

On 07.04.10 01:02, Felix Oertel wrote:
> if you decline a wrong DataType for your variable (let's say you decline
> it to be Tx_YourExt_Model_Domain_Foo instead of
> Tx_YourExt_Domain_Model_Foo), transformValue()
> (Classes/MVC/Controller/Argument.php : 345) will just return it's value
> instead of throwing an exception that the corresponding class is not found.
>
> This makes it almost impossible to find a typo in your declaration.
>
> I think we should catch the default types (like boolean, string, etc)
> and throw an exception, if we know that a class is meant by the
> declaration but it's not found.
>
> http://forge.typo3.org/issues/show/7076

We are currently in sync with FLOW3 here. This behavior was introduced 
with r3174 and is related to #4631.

http://forge.typo3.org/issues/show/4631

This doesn't mean that it is the correct behavior but we should discuss 
this with the FLOW3 team. Could you please open an issue there and link 
it to this one?

http://forge.typo3.org/projects/package-flow3/issues

Regards
Jochen

BTW Thanks for contributing and adding a unit test!


More information about the TYPO3-project-typo3v4mvc mailing list