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

Felix Oertel post at typo3felix.de
Wed Apr 7 01:02:55 CEST 2010


Hey guys,

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

Please see attached patch ...

Regards, foertel


More information about the TYPO3-project-typo3v4mvc mailing list